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

Unified Diff: third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.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, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.html
diff --git a/third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.html b/third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.html
index a64b9a0335b0220a3fcec8697b577df6b1b41946..cae7ee69007a2b40ed3c39aa3d684d75ee4a8247 100644
--- a/third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.html
+++ b/third_party/WebKit/LayoutTests/fast/parser/resources/set-parent-to-javascript-url.html
@@ -1,6 +1,8 @@
<script>
+// Capture window.parent: once this context navigates, window.parent always returns null.
+var p = parent;
alert(1);
parent.document.getElementsByTagName('iframe')[0].src = "javascript:alert(2),'PASS<script>alert(3)<\/script>'";
alert(4);
-parent.setTimeout("done()", 0);
+p.setTimeout("done()", 0);
</script>

Powered by Google App Engine
This is Rietveld 408576698