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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.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-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..06f218b3c6dc696d25de2b75f47696cc6e58a320 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.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("Fail");
} catch(e) {
log("Pass");
}
-
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698