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

Side by Side Diff: LayoutTests/fast/frames/set-iframe-src-in-pagehide-crash.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <body> 2 <body>
3 <div id=one><iframe></iframe></div> 3 <div id=one><iframe></iframe></div>
4 <div id=two></div> 4 <div id=two></div>
5 <div id=three></div> 5 <div id=three></div>
6 <script src="../js/resources/js-test-pre.js"></script> 6 <script src="../../resources/js-test.js"></script>
7 <script> 7 <script>
8 description("Setting an iframe's src in a pagehide handler should not create a f rame (nor a crash)"); 8 description("Setting an iframe's src in a pagehide handler should not create a f rame (nor a crash)");
9 var div1 = document.getElementById('one'); 9 var div1 = document.getElementById('one');
10 var div2 = document.getElementById('two'); 10 var div2 = document.getElementById('two');
11 var div3 = document.getElementById('three'); 11 var div3 = document.getElementById('three');
12 var subframe = document.querySelector('iframe'); 12 var subframe = document.querySelector('iframe');
13 subframe.contentWindow.onpagehide = function() { 13 subframe.contentWindow.onpagehide = function() {
14 div2.appendChild(div1); 14 div2.appendChild(div1);
15 subframe.src = 'javascript:void(0)'; 15 subframe.src = 'javascript:void(0)';
16 shouldBeNull("subframe.contentWindow"); 16 shouldBeNull("subframe.contentWindow");
17 }; 17 };
18 subframe.remove(); 18 subframe.remove();
19 div3.appendChild(subframe); 19 div3.appendChild(subframe);
20 subframe.remove(); 20 subframe.remove();
21 debug("did not crash"); 21 debug("did not crash");
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698