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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.html

Issue 1374533002: Null out LocalDOMWindow::m_frame on navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to fix crash-on-querying-event-path.html Created 5 years, 2 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
OLDNEW
1 <script> 1 <script>
2 function test() 2 function test()
3 { 3 {
4 (function () 4 (function ()
5 { 5 {
6 (function () 6 (function ()
7 { 7 {
8 (function () 8 (function ()
9 { 9 {
10 frameElement.src = "javascript:'<pre>PASS: You didn\\'t crash.</ pre>'"; 10 frameElement.src = "javascript:'<pre>PASS: You didn\\'t crash.</ pre>'";
11 })() 11 })()
12 })() 12 })()
13 })() 13 })()
14 } 14 }
15 15
16 setTimeout(function () 16 setTimeout(function ()
17 { 17 {
18 // Capture window.window into a variable, since this property returns null a s soon as the
19 // context is navigated.
20 var w = window;
18 test(); 21 test();
19 if (window.testRunner) 22 if (w.testRunner)
20 testRunner.notifyDone(); 23 w.testRunner.notifyDone();
21 }, 0); 24 }, 0);
22 </script> 25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698