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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html

Issue 232053005: Implement navigator.sendBeacon() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert CSP checking on redirects Created 6 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: 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>

Powered by Google App Engine
This is Rietveld 408576698