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

Side by Side Diff: LayoutTests/fast/dom/StyleSheet/stylesheet-move-between-documents-crash.html

Issue 721103002: Fix lfiespan of ScopedStyleResolver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comment in layout test. Created 6 years, 1 month 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 <script>
2 if (window.testRunner)
3 testRunner.waitUntilDone();
4
5 var iframe;
6 var div;
7
8 function start() {
9 iframe = document.createElement('iframe');
10 iframe.src='resources/stylesheet-move-iframe1.xml';
11 document.getElementById('store_div').appendChild(iframe);
12 window.setTimeout('startrly()', 100);
13 }
14
15 function startrly() {
16 if (location.hash == '#done') {
17 document.write('PASS');
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.notifyDone();
21 }
22 return;
23 }
24 var count = 0;
25 if (location.hash !== "")
26 count = parseInt(location.hash.substr(1));
27 if (count < 10) {
28 ++count;
29 location.hash = '#' + count;
30 } else {
31 location.hash = 'done';
32 }
33 div = document.createElement('div');
34 // <marquee> is special as it is implemented using Blink-in-JS (JS code runs for
35 // creating a custom element and a shadow root) and invokes its attachedCall back
36 // from C++ code, which can cause a special race condition with reloading wh en
37 // it is moved between different documents.
38 marquee = document.createElement('marquee');
hayato 2014/11/19 10:52:15 Looks 'var' is missing for marquee.
kochi 2014/11/19 11:41:52 Done.
39 document.body.appendChild(marquee);
40 document.body.scrollIntoView(false);
41
42 var iframe2 = document.createElement('iframe');
43 iframe2.src='resources/stylesheet-move-iframe2.html';
hayato 2014/11/19 10:52:15 spaces around '='.
kochi 2014/11/19 11:41:52 Done.
44 document.body.appendChild(iframe2);
45
46 document.body.appendChild(iframe.contentDocument.firstChild);
47 div.appendChild(marquee);
48 window.setTimeout('location.reload();',20);
49 }
50 </script>
51 <body onload="start()">
52 <div id="store_div"></div>
53 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698