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

Side by Side Diff: LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash.html

Issue 1290053003: Handle LocalFrame being nestedly detached by subframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test.js"></script>
4 <div id="a"></div>
5 <div id="b"><iframe id="f"></iframe></div>
6 <script>
7 description("Allow nested frame detaches from subframe without crashing.");
8
9 self.jsTestIsAsync = true;
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 }
14
15 var iframe = f.contentDocument;
16 iframe.open();
17 function moveDivBIntoDivA() {
18 try {
19 a.appendChild(b);
20 iframe.open();
21 } catch(e) {
22 finishJSTest();
23 }
24 }
25
26 iframe.addEventListener('readystatechange', moveDivBIntoDivA);
27 moveDivBIntoDivA();
28 </script>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698