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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html

Issue 2452473003: Do not use outdated m_distributedNodes of slots in non-shadow trees (Closed)
Patch Set: update Created 4 years, 2 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/Node.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/slots-in-document-tree-crash.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..126ab9e951de221572192bbfa0d0b1be355631fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+<div id='p1'><slot><div id='c1'></div></slot></div>
+<script>
+test(() => {
+ document.body.offsetLeft;
+ const doc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
+ doc.adoptNode(c1);
+ p1.style.display = "none";
+}, "Slots in a document tree should not cause a crash.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698