Index: LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html |
similarity index 80% |
copy from LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html |
copy to LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html |
index 3931f251ae4a1e7ecb24462fa0939388d4525bf4..368d6d56cc72ca7e7836fdeba8a48080f7a41c2d 100644 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html |
@@ -16,7 +16,7 @@ function log(msg) |
} |
try { |
- var es = new EventSource("http://127.0.0.1:8000/eventsource/resources/simple-event-stream.asis"); |
+ var es = navigator.sendBeacon("http://127.0.0.1:8000/security/contentSecurityPolicy/echo-report.php"); |
log("Pass"); |
} catch(e) { |
log("Fail"); |