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

Unified Diff: third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp

Issue 2870383002: Have sendBeacon throw for Blobs with a type that is not CORS-safelisted. (Closed)
Patch Set: Rebase Created 3 years, 7 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/modules/beacon/NavigatorBeacon.cpp
diff --git a/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp b/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
index 9517ab5f7f769d1bd6f2fb5c4f3305721c4112b1..c5d97d7cedddcb6438082ad50c77a5bd0a475e98 100644
--- a/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
+++ b/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
@@ -126,9 +126,9 @@ bool NavigatorBeacon::SendBeaconImpl(
if (RuntimeEnabledFeatures::
sendBeaconThrowForBlobWithNonSimpleTypeEnabled()) {
exception_state.ThrowSecurityError(
- "sendBeacon() with a Blob whose type is not CORS-safelisted MIME "
- "type is disallowed experimentally. See http://crbug.com/490015 "
- "for details.");
+ "sendBeacon() with a Blob whose type is not any of the "
+ "CORS-safelisted values for the Content-Type request header is "
+ "disabled temporarily. See http://crbug.com/490015 for details.");
return false;
}
}

Powered by Google App Engine
This is Rietveld 408576698