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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html

Issue 1659013003: Don't reset LoadEventProgress if frame unload has already started. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 10 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 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 jsTestIsAsync = true;
7
8 function runTest() {
9 description('Test that document.open() doesn\'t allow frames to be attached du ring frame detach.');
10 window[0].document.open();
dcheng 2016/02/03 03:13:29 At this point, LoadEventProgress gets reset to Loa
11 window[0].document.appendChild(document.createElement('iframe'));
dcheng 2016/02/03 03:13:29 Right now, our tree looks like this: [Main frame]
12 window[0][0].addEventListener('unload', function() {
13 window[0].document.documentElement.appendChild(document.createElement('ifram e'));
dcheng 2016/02/03 03:13:29 Since Child B's load event progress is normal, we
14 shouldBe('1', 'window[0].length');
dcheng 2016/02/03 03:13:29 If the iframe load is blocked, then window[0].leng
15 shouldBeUndefined('window[0][1]');
16 finishJSTest();
17 });
18 window[0].location = 'data:text/plain,Hello world!';
19 }
20 </script>
21 </head>
22 <body onload="runTest()">
23 <iframe></iframe>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698