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

Side by Side Diff: LayoutTests/fast/frames/detach-frame-repeated-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: 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
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 repeated frame detaches 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-repeated-no-crash-expected.txt » ('j') | Source/core/loader/FrameLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698