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 33cae5d175d7867981074c4d57e5865dd4411e5f..6d21dfc9246b2e675cf9eb744086a4b4200ddc22 100644 |
--- a/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp |
+++ b/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp |
@@ -58,16 +58,6 @@ bool NavigatorBeacon::canSendBeacon(ExecutionContext* context, |
SyntaxError, "Beacons are only supported over HTTP(S)."); |
return false; |
} |
- // FIXME: CSP is not enforced on redirects, crbug.com/372197 |
- if (!ContentSecurityPolicy::shouldBypassMainWorld(context) && |
- !context->contentSecurityPolicy()->allowConnectToSource(url)) { |
- // We can safely expose the URL to JavaScript, as these checks happen |
- // synchronously before redirection. JavaScript receives no new information. |
- exceptionState.throwSecurityError( |
- "Refused to send beacon to '" + url.elidedString() + |
- "' because it violates the document's Content Security Policy."); |
- return false; |
- } |
// If detached from frame, do not allow sending a Beacon. |
if (!frame() || !frame()->client()) |