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

Unified Diff: LayoutTests/fast/css-grid-layout/stale-grid-layout.html

Issue 302083005: Don't leave stale pointers into m_grid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 6 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 | LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-grid-layout/stale-grid-layout.html
diff --git a/LayoutTests/fast/css-grid-layout/stale-grid-layout.html b/LayoutTests/fast/css-grid-layout/stale-grid-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..908e1ccb75487f12dbf3dc7be294d22f4ea3bd13
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/stale-grid-layout.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<keygen>
+<div style="display: grid;">The test checks that we don't add non-children of the grid into the grid representation<br>This test has passed if it didn't crash under ASAN.
+ <embed type=something-not-js>
+</div>
+<style>
+embed { position: absolute; }
+.c1 { animation-delay: 45762s; }
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function crash() {
+ var highlight = document.createElementNS("http://www.w3.org/1999/xhtml", "highlight");
+ highlight.setAttribute("class", "c1");
+ document.body.appendChild(highlight);
+
+ for (i=0; i != 8; i++)
+ eventSender.keyDown("\t");
+ eventSender.keyDown("X");
+}
+
+if (!window.eventSender)
+ alert("This test needs to be run under DumpRenderTree.");
+else
+ document.addEventListener("DOMContentLoaded", crash, false);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698