Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 302083005: Don't leave stale pointers into m_grid (Closed) Base URL:
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
Index: LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html
diff --git a/LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html b/LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..eadda6b6006e723f29b47e74f39aa087fea62616
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/stale-grid-layout-2.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<span style="display: grid" contenteditable=plaintext-only>
+if (window.testRunner)
+ testRunner.dumpAsText();
+function crash() {
+ if (!window.eventSender)
+ return;
+ eventSender.keyDown("\t");
+ eventSender.keyDown("X");
+ document.designMode = 'on';
+ document.execCommand("InsertHTML", false, "<div>");
+document.addEventListener("DOMContentLoaded", crash, false);
+</script>The test checks that we don't leave stale pointers into the internal grid representation.<br> This test has PASSED if it didn't crash under ASAN.

Powered by Google App Engine
This is Rietveld 408576698