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

Side by Side Diff: LayoutTests/fast/dom/Window/open-after-frame-detached.html

Issue 131113003: Fix DOMWindow::isCurrentlyDisplayedInFrame to return false when detached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ScreenOrientation + test window.open. 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 var childWindow;
6 function runTest()
7 {
8 description("Tests that calling window.open on the contentWindow of a detach ed frame does not crash or open a new window. You may need to disable popup bloc king for this test case.");
9 if (window.testRunner)
10 testRunner.setCanOpenWindows();
11 var ifr = document.createElement("iframe");
12 ifr.onload = function ()
13 {
14 childWindow = ifr.contentWindow;
15 ifr.parentNode.removeChild(ifr);
16 shouldBeNull("childWindow.open('about:blank')");
17 }
18 document.body.appendChild(ifr);
19 }
20 </script>
21 </head>
22 <body onload="runTest()">
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698