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

Side by Side Diff: LayoutTests/http/tests/security/referrer-policy-redirect-link.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText(); 6 testRunner.dumpChildFramesAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 testRunner.setCanOpenWindows(); 8 testRunner.setCanOpenWindows();
9 testRunner.setCloseRemainingWindowsWhenComplete(true); 9 testRunner.setCloseRemainingWindowsWhenComplete(true);
10 } 10 }
11 11
12 function runTest() { 12 function runTest() {
13 var iframe = document.getElementById("iframe"); 13 var iframe = document.getElementById("iframe");
14 iframe.contentWindow.postMessage({"action": "click", "offsetLeft": iframe.of fsetLeft, "offsetTop": iframe.offsetTop}, "*"); 14 iframe.contentWindow.postMessage({"action": "click", "offsetLeft": iframe.of fsetLeft, "offsetTop": iframe.offsetTop}, "*");
15 } 15 }
16 </script> 16 </script>
17 </head> 17 </head>
18 <body> 18 <body>
19 <p> 19 <p>
20 This test checks the referrer policy is obeyed along the redirect chain. The 20 This test checks the referrer policy is obeyed along the redirect chain. The
21 test passes if the referrer is https://127.0.0.1:8443 21 test passes if the referrer is https://127.0.0.1:8443
22 </p> 22 </p>
23 <iframe id="iframe" onload="runTest()" src="https://127.0.0.1:8443/security/reso urces/referrer-policy-redirect-link.html"></iframe> 23 <iframe id="iframe" name="iframe" onload="runTest()" src="https://127.0.0.1:8443 /security/resources/referrer-policy-redirect-link.html"></iframe>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698