Index: LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.html |
similarity index 80% |
copy from LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html |
copy to LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.html |
index 6a37bc10bee4c8177205381bf6ebaaef37a1501d..9804023473566ac585b5a9d72c789949c7a95d6f 100644 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.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("Fail"); |
} catch(e) { |
log("Pass"); |