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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 2211353003: Remove code to block sync XHRs during microtask executions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index 50a81331c4973b122a869acee3ed2fbfa6a239f0..ce557463698935e4f2983803df51abd588333de0 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -632,11 +632,7 @@ bool XMLHttpRequest::initSend(ExceptionState& exceptionState)
}
if (!m_async && exceptionState.isolate() && v8::MicrotasksScope::IsRunningMicrotasks(exceptionState.isolate())) {
- Deprecation::countDeprecation(getExecutionContext(), UseCounter::During_Microtask_SyncXHR);
- if (RuntimeEnabledFeatures::disableBlockingMethodsDuringMicrotasksEnabled()) {
- exceptionState.throwDOMException(InvalidAccessError, "Cannot send() synchronous requests during microtask execution.");
- return false;
- }
+ UseCounter::count(getExecutionContext(), UseCounter::During_Microtask_SyncXHR);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698