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

Unified Diff: LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt

Issue 203493005: Add more checks to prevent crashes when accessing name/opener properties (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase results 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt
diff --git a/LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt b/LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3f353264a012bd93b3dd65ccbc56ce8896c3d5c5
--- /dev/null
+++ b/LayoutTests/fast/dom/Window/name-and-opener-on-detached-window-expected.txt
@@ -0,0 +1,12 @@
+Tests that getting and setting name and opener on a cached DOMWindow after the associated frame is removed from a web page does not crash.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS childWindow.name is 'oldname'
+PASS childWindow.opener is null
+PASS childWindow.name is ''
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/Window/name-and-opener-on-detached-window.html ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698