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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/slot-dir-attribute-crash.html

Issue 2172133002: Fix a crash caused by changing dir attribute of a slot element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/shadow-dom/crashes/slot-dir-attribute-crash.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/slot-dir-attribute-crash.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slot-dir-attribute-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..a3c3f2c7a53662b7bf967aeeb8506d85d4f506b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slot-dir-attribute-crash.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+<script>
+test(() => {
+ let slot = document.createElement("slot");
+ // This could cause crash. See crbug.com/627385
+ slot.setAttribute("dir", "auto");
+ assert_true(true, 'This test must run without crash.');
+}, "HTMLSlotElement's dir attribute should not be used until Blink supports slots in a flat tree.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698