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

Side by Side Diff: LayoutTests/fast/html/marquee-clone-crash.html

Issue 809343002: ScopedStyleResolver should be cleared when ShadowRoot is removed from document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Imported test from https://codereview.chromium.org/808333002/ Created 6 years 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/html/marquee-clone-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 <script>
3 var ex = false;
4 var doc;
5 var count = 0;
6
7 if (window.testRunner)
8 testRunner.waitUntilDone();
9
10 function start() {
11 if (location.hash == "") {
12 location.hash = "#0";
13 } else {
14 count = parseInt(location.hash.substring(1));
15 if (count >= 5) {
16 document.write('PASS');
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 testRunner.notifyDone();
20 }
21 return;
22 }
23 }
24
25 doc = document.documentElement;
26 mq1 = document.createElement('marquee');
27 var iframe = document.createElement('iframe');
28 iframe.src = "nonexistent";
29
30 doc.appendChild(iframe);
31 mq2 = mq1.cloneNode(false);
32
33 iframe.onload = iframe_onload;
34 setTimeout('start_pause1()', 100);
35 }
36
37 function start_pause1() {
38 document.removeChild(doc);
39 document.appendChild(doc);
40 setTimeout('start_pause2()', 100);
41 }
42
43 function start_pause2() {
44 document.removeChild(doc);
45 gc();
46 document.appendChild(doc);
47 location.hash = '#' + ++count;
48 location.reload();
49 }
50
51 function iframe_onload() {
52 if (ex)
53 return;
54 ex = true;
55
56 var iframe = document.createElement('iframe');
57 iframe.src='resources/marquee-crash.svg';
58 doc.appendChild(iframe);
59 }
60 </script>
61 <body onload="start()"></body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/marquee-clone-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698