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

Side by Side Diff: LayoutTests/http/tests/navigation/beacon-cross-origin-redirect.html

Issue 1016373002: Perform CORS access checks on Beacon redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased + add mixed content test Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 description("Verifying that navigator.sendBeacon() to non-CORS cross-origin redi rect fails.");
7
8 window.jsTestIsAsync = true;
9
10 function test() {
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.dumpPingLoaderCallbacks();
14 }
15
16 shouldBeTrue('navigator.sendBeacon("http://127.0.0.1:8080/navigation/resourc es/redirection-response.php?status=302&target=non-existent.php", "CrossOrigin"); ');
17 // Wait a while for the redirect response handling to happen before finishin g up.
18 setTimeout(finishJSTest, 200);
19 }
20 </script>
21 </head>
22 <body onload="test();">
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/beacon-cross-origin-redirect-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698