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

Side by Side Diff: LayoutTests/http/tests/navigation/no-referrer-subframe.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><body> 1 <html><body>
2 This tests behavior of "noreferrer" links in subframes. A referrer should not be sent and window.opener should remain null.<br/> 2 This tests behavior of "noreferrer" links in subframes. A referrer should not be sent and window.opener should remain null.<br/>
3 <a id="link" href="resources/no-referrer-helper.php" rel="noreferrer" target="su bframe">Load subframe</a> 3 <a id="link" href="resources/no-referrer-helper.php" rel="noreferrer" target="su bframe">Load subframe</a>
4 <iframe id="subframe" src="about:blank"></iframe> 4 <iframe name="subframe" src="about:blank"></iframe>
5 <script> 5 <script>
6 window.name = "consoleWindow"; 6 window.name = "consoleWindow";
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
11 11
12 var target = document.getElementById("link"); 12 var target = document.getElementById("link");
13 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2); 13 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
14 eventSender.mouseDown(); 14 eventSender.mouseDown();
15 eventSender.mouseUp(); 15 eventSender.mouseUp();
16 16
17 function log(msg) 17 function log(msg)
18 { 18 {
19 var line = document.createElement('div'); 19 var line = document.createElement('div');
20 line.appendChild(document.createTextNode(msg)); 20 line.appendChild(document.createTextNode(msg));
21 document.getElementById('console').appendChild(line); 21 document.getElementById('console').appendChild(line);
22 } 22 }
23 </script> 23 </script>
24 <div id="console"></div> 24 <div id="console"></div>
25 </body></html> 25 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698