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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/remove-stylesheet-from-shadow-form-crash.html

Issue 1556963002: Avoid crash when updating stylesheets during a remove operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | third_party/WebKit/LayoutTests/fast/css/remove-stylesheet-from-shadow-form-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 <style></style>
3 <p>PASS if no crash.</p>
4 <div id="div"></div>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 var div = document.getElementById("div");
10 var shadowRoot = div.createShadowRoot();
11 shadowRoot.innerHTML = "<form><input></input></form>";
12
13 // Force a style recalc.
14 getComputedStyle(document.body).color;
15
16 var input = shadowRoot.querySelector("input");
17 input.appendChild(document.createElement("style"));
18 input.remove();
19 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/remove-stylesheet-from-shadow-form-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698