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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/character-data-set-data-crash.html

Issue 2680463003: Remove branch on childNeedsDistributionRecalc (Closed)
Patch Set: rune nit: Fix typo in the comment Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Text.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/crashes/character-data-set-data-crash.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/character-data-set-data-crash.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/character-data-set-data-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..6b559921ad7de98f9ff47ef1a73452c30ee84be3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/character-data-set-data-crash.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+<div id="host">XXX</div>
+<script>
+test(() => {
+ document.body.offsetTop;
+ var root = host.attachShadow({mode:"open"});
+ root.innerHTML = "<slot></slot>";
+ host.firstChild.data = " ";
+ assert_true(true, 'This test must run without crash.');
+}, 'Setting CharacterData.data while distribution is dirty should not cause a crash (crbug.com/673967).' );
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698