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

Side by Side Diff: LayoutTests/fast/dom/Window/window-access-after-navigation.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 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 } 6 }
7 7
8 var windowObject; 8 var windowObject;
9 9
10 function getWindow() 10 function getWindow()
11 { 11 {
12 windowObject = subframe; 12 windowObject = subframe;
13 subframe.location.href = 'resources/blank.html'; 13 subframe.location.href = 'resources/blank.html';
14 } 14 }
15 15
16 function checkWindowAccess() 16 function checkWindowAccess()
17 { 17 {
18 if (windowObject && windowObject.document && /blank.html/.test(windowObject. location)) { 18 if (windowObject && windowObject.document && /blank.html/.test(windowObject. location)) {
19 document.getElementById('result').innerHTML = 'SUCCESS'; 19 document.getElementById('result').innerHTML = 'SUCCESS';
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.notifyDone(); 21 testRunner.notifyDone();
22 } 22 }
23 } 23 }
24 </script> 24 </script>
25 <body onload='getWindow()'> 25 <body onload='getWindow()'>
26 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=27394">bug 27394</a> : 26 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=27394">bug 27394</a> :
27 properties on a window object should be accessible after the frame of the window object has navigated to another page.</p> 27 properties on a window object should be accessible after the frame of the window object has navigated to another page.</p>
28 <div id='result'>FAILED</div> 28 <div id='result'>FAILED</div>
29 <iframe id='subframe' onload='checkWindowAccess()'></iframe> 29 <iframe name='subframe' onload='checkWindowAccess()'></iframe>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698