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

Side by Side Diff: LayoutTests/fast/history/same-document-iframes-changing-fragment.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <pre id="console"></pre> 8 <pre id="console"></pre>
9 9
10 <iframe src="data:text/plain,iframe1" id="iframe1"></iframe> 10 <iframe src="data:text/plain,iframe1" id="iframe1" name="iframe1"></iframe>
11 <iframe src="data:text/plain,iframe2" id="iframe2"></iframe> 11 <iframe src="data:text/plain,iframe2" id="iframe2" name="iframe2"></iframe>
12 12
13 <script> 13 <script>
14 var wentBack = false; 14 var wentBack = false;
15 15
16 description('Tests that we trigger same-document navigation when history entries are generated via fragment changes, even if the frames present in the document change between history entries.'); 16 description('Tests that we trigger same-document navigation when history entries are generated via fragment changes, even if the frames present in the document change between history entries.');
17 17
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpChildFramesAsText(); 19 testRunner.dumpChildFramesAsText();
20 testRunner.clearBackForwardList(); 20 testRunner.clearBackForwardList();
21 testRunner.dumpBackForwardList(); 21 testRunner.dumpBackForwardList();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 { 55 {
56 debug('removing iframe2'); 56 debug('removing iframe2');
57 document.body.removeChild(document.getElementById('iframe2')); 57 document.body.removeChild(document.getElementById('iframe2'));
58 58
59 debug('navigating to #newState'); 59 debug('navigating to #newState');
60 window.location.href = '#newState'; 60 window.location.href = '#newState';
61 } 61 }
62 var jsTestIsAsync = true; 62 var jsTestIsAsync = true;
63 </script> 63 </script>
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698