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

Unified Diff: Source/core/xmlhttprequest/XMLHttpRequest.h

Issue 942433003: Protect XHR's wrapper while dispatching event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xmlhttprequest/XMLHttpRequest.h
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.h b/Source/core/xmlhttprequest/XMLHttpRequest.h
index 57ad7803861814556c3408255f8b2f68024ffd8f..10a6dc63d2f25c40afd9092406e355bdc1b26ffd 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequest.h
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.h
@@ -295,6 +295,11 @@ private:
// |m_responseTypeCode| is NOT ResponseTypeBlob.
OwnPtrWillBeMember<BlobLoader> m_blobLoader;
+ // Positive if we are dispatching events.
+ // This is an integer specifying the recursion level rather than a boolean
+ // because in some cases we have recursive dispatching.
+ int m_eventDispatchRecursionLevel;
+
bool m_async;
bool m_includeCredentials;
// Used to skip m_responseDocument creation if it's done previously. We need
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698