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

Unified Diff: LayoutTests/editing/selection/contains-node-crash.html

Issue 15390003: Use-after-free in WebCore::Range::compareBoundaryPoints (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/editing/selection/contains-node-crash.html
diff --git a/LayoutTests/editing/selection/contains-node-crash.html b/LayoutTests/editing/selection/contains-node-crash.html
new file mode 100755
index 0000000000000000000000000000000000000000..ef0c04e93af34a058a72216d71b5fe1b4055acda
--- /dev/null
+++ b/LayoutTests/editing/selection/contains-node-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html style="display: inline-table">
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+window.onload = function() {
+ var selection = window.getSelection();
+ selection.selectAllChildren(document);
+ selection.collapseToEnd();
+ var element = document.activeElement;
+ document.open();
+ document.write("Pass. Test didn't crash.");
+ document.close();
+ selection.containsNode(element,true);
+}
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/selection/contains-node-crash-expected.txt » ('j') | Source/core/page/DOMSelection.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698