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

Unified Diff: LayoutTests/accessibility/event-on-deleted-iframe-causes-crash.html

Issue 1153723008: Don't create an AXScrollView for a FrameView that's about to be deleted. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more comments based on review Created 5 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/accessibility/event-on-deleted-iframe-causes-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/event-on-deleted-iframe-causes-crash.html
diff --git a/LayoutTests/accessibility/event-on-deleted-iframe-causes-crash.html b/LayoutTests/accessibility/event-on-deleted-iframe-causes-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e70a968e164b29a0a64c5b25b78b75ca55b78466
--- /dev/null
+++ b/LayoutTests/accessibility/event-on-deleted-iframe-causes-crash.html
@@ -0,0 +1,35 @@
+<div contenteditable="true">
+ <span id="item1">Lorem
+ <br/>
+ more Lorem!
+ <blockquote>
+ ipsum
+ <span id="item2">
+</div>
+
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var s = window.getSelection();
+ var p1 = document.getElementById("item1");
+ var p2 = document.getElementById("item2");
+ s.setBaseAndExtent(p1, 0, p2);
+ document.execCommand("Indent");
+
+ // This code doesn't do anything initially, but the code below creates an iframe
+ // with the same url as this one, and that time it will delete itself.
+ var frame = window.parent.document.querySelector('iframe');
+ if (frame)
+ frame.remove();
+</script>
+<script>
+ // This creates an iframe with the same url as this one, which triggers
+ // the code above that deletes this iframe, and then triggers a possible crash
+ // when the execCommand fires accessibility notifications that trigger creation
+ // of the AXScrollArea corresponding to the frame that's in the process of
+ // being deleted.
+ var iframe = document.createElement('iframe');
+ iframe.src = window.location;
+ document.body.appendChild(iframe);
+</script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/event-on-deleted-iframe-causes-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698