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..2e1c755f47e53e6159f9726db8b1103cabf13d3b 100644 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html |
@@ -16,12 +16,11 @@ 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"); |
} |
- |
</script> |
</body> |
</html> |