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

Side by Side Diff: LayoutTests/http/tests/security/srcdoc-inherits-referrer-for-forms.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 <script> 1 <script>
2 if (window.testRunner) { 2 if (window.testRunner) {
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 testRunner.dumpChildFramesAsText(); 5 testRunner.dumpChildFramesAsText();
6 } 6 }
7 </script> 7 </script>
8 The srcdoc iframe below should use this document's URL as its referrer. 8 The srcdoc iframe below should use this document's URL as its referrer.
9 <iframe srcdoc=" 9 <iframe srcdoc="
10 This iframe logs information about its referrer:<br> 10 This iframe logs information about its referrer:<br>
11 <iframe id='tg'></iframe> 11 <iframe id='tg' name='tg'></iframe>
12 <form target='tg' id='fm' method='GET' action='resources/referrer-policy-log.php '></form> 12 <form target='tg' id='fm' method='GET' action='resources/referrer-policy-log.php '></form>
13 <script> 13 <script>
14 document.getElementById('tg').addEventListener('load', function() { 14 document.getElementById('tg').addEventListener('load', function() {
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.notifyDone(); 16 testRunner.notifyDone();
17 }, false); 17 }, false);
18 document.getElementById('fm').submit(); 18 document.getElementById('fm').submit();
19 </script> 19 </script>
20 "></iframe> 20 "></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698