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

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

Issue 23465030: Prevent entering XHR methods while loader is being cancelled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index ca6f9211aeeb07be634b914336dc4b8f47c2ae12..1f1a89e7201e75e1034a26c8066c9f113fae708d 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -109,7 +109,7 @@ public:
void send(DOMFormData*, ExceptionState&);
void send(ArrayBuffer*, ExceptionState&);
void send(ArrayBufferView*, ExceptionState&);
- void abort();
+ void abort(ExceptionState&);
void setRequestHeader(const AtomicString& name, const String& value, ExceptionState&);
void overrideMimeType(const String& override);
String getAllResponseHeaders(ExceptionState&) const;
@@ -216,6 +216,9 @@ private:
RefPtr<SharedBuffer> m_binaryResponseBuilder;
mutable RefPtr<ArrayBuffer> m_responseArrayBuffer;
+ // Prevents reentrant of methods while m_loader->cancel() is running.
+ bool m_preventReentrant;
+
bool m_error;
bool m_uploadEventsAllowed;

Powered by Google App Engine
This is Rietveld 408576698