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

Side by Side Diff: LayoutTests/fast/frames/detach-frame-during-focus.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.waitUntilDone(); 3 testRunner.waitUntilDone();
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 } 5 }
6 6
7 addEventListener('change', function(e) { 7 addEventListener('change', function(e) {
8 document.body.appendChild(document.getElementById('frame1')); 8 document.body.appendChild(document.getElementById('frame1'));
9 }, false); 9 }, false);
10 10
11 var didStartTest = false; 11 var didStartTest = false;
12 function startTest() { 12 function startTest() {
13 if (didStartTest) 13 if (didStartTest)
14 return; 14 return;
15 didStartTest = true;; 15 didStartTest = true;
16 frame1.innerInput.focus(); 16 var frameWindow = document.getElementById('frame1').contentWindow;
17 frameWindow.innerInput.focus();
17 outerInput.focus(); 18 outerInput.focus();
18 document.execCommand('inserttext', false, 'abc'); 19 document.execCommand('inserttext', false, 'abc');
19 frame1.innerInput.focus(); 20 frameWindow.innerInput.focus();
20 document.body.appendChild(document.createTextNode('PASS')); 21 document.body.appendChild(document.createTextNode('PASS'));
21 testRunner.notifyDone(); 22 testRunner.notifyDone();
22 } 23 }
23 </script> 24 </script>
24 <div> 25 <div>
25 <input value="foo" id="outerInput"> 26 <input value="foo" id="outerInput">
26 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="&lt;i nput id='innerInput'>"></iframe> 27 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="&lt;i nput id='innerInput'>"></iframe>
27 </div> 28 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698