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

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

Issue 2395313002: Revert of Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: 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 91188b57fbf107336e00b9d22827900354745acf..b9cf5ab7b43f3fe65ffcb5186ca8893d8ebabe1c 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -1468,12 +1468,7 @@
if (m_error)
return;
- // Internally, access check violations are considered `cancellations`, but
- // at least the mixed-content and CSP specs require them to be surfaced as
- // network errors to the page. See:
- // [1] https://www.w3.org/TR/mixed-content/#algorithms,
- // [2] https://www.w3.org/TR/CSP3/#fetch-integration.
- if (error.isCancellation() && !error.isAccessCheck()) {
+ if (error.isCancellation()) {
handleDidCancel();
return;
}

Powered by Google App Engine
This is Rietveld 408576698