Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.h

Issue 2487403002: Allow navigations to frames that aren't being unloaded in the unload handler. (Closed)
Patch Set: early return on back/forward navigations Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/NavigationScheduler.h
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.h b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
index 10d870e116bf155873a06e0a9b86d7d5b5e54892..3e14352acfffaa25f2ac25c11def10f9854dbdf9 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.h
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
@@ -96,13 +96,13 @@ class CORE_EXPORT NavigationScheduler final
WebScheduler::NavigatingFrameType m_frameType;
};
-class NavigationDisablerForUnload {
- WTF_MAKE_NONCOPYABLE(NavigationDisablerForUnload);
+class NavigationDisablerForBeforeUnload {
+ WTF_MAKE_NONCOPYABLE(NavigationDisablerForBeforeUnload);
STACK_ALLOCATED();
public:
- NavigationDisablerForUnload() { s_navigationDisableCount++; }
- ~NavigationDisablerForUnload() {
+ NavigationDisablerForBeforeUnload() { s_navigationDisableCount++; }
+ ~NavigationDisablerForBeforeUnload() {
DCHECK(s_navigationDisableCount);
s_navigationDisableCount--;
}

Powered by Google App Engine
This is Rietveld 408576698