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

Unified Diff: Source/core/dom/Document.h

Issue 585873002: Show a warning when using sync xhr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Document lifecycle enums used for beforeunload event tracking. Created 6 years, 2 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index dc9f9faa7a925e9274be4954385f38444b20b0ed..f1aa70a6cea3bc74dc1a69a635f44aff98971c3b 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -900,6 +900,7 @@ public:
bool processingLoadEvent() const { return m_loadEventProgress == LoadEventInProgress; }
bool loadEventFinished() const { return m_loadEventProgress >= LoadEventCompleted; }
bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgress; }
+ bool processingBeforeUnload() const { return m_loadEventProgress == BeforeUnloadEventInProgress; }
kouhei (in TOK) 2014/10/07 23:21:18 Please don't add a new one. I think we can use !un
Mayur Kankanwadi 2014/10/08 10:14:24 unloadStarted even includes PageHideInProgress, wh
kouhei (in TOK) 2014/10/09 06:45:46 Acknowledged.
void setContainsPlugins() { m_containsPlugins = true; }
bool containsPlugins() const { return m_containsPlugins; }

Powered by Google App Engine
This is Rietveld 408576698