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

Unified Diff: LayoutTests/fast/forms/ua-shadow-select-all-crash.html

Issue 848843002: VisibleSelection::nonBoundaryShadowTreeRootNode should return null when its anchor is a shadow root (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/forms/ua-shadow-select-all-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/ua-shadow-select-all-crash.html
diff --git a/LayoutTests/fast/forms/ua-shadow-select-all-crash.html b/LayoutTests/fast/forms/ua-shadow-select-all-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..62f1a8812ec51fe386b9bc4a6bb8a59a00db85a6
--- /dev/null
+++ b/LayoutTests/fast/forms/ua-shadow-select-all-crash.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<body>
+<button type="button" id="button1">FOOO</button>
+<input type="text" id="input1">
+<script>
+if (window.testRunner)
+ window.testRunner.dumpAsText();
+var button1 = document.getElementById('button1');
+var input1 = document.getElementById('input1');
+input1.setSelectionRange(0);
+input1.type = 'week';
+var oSelection = window.getSelection();
+document.execCommand('SelectAll');
+oSelection.deleteFromDocument();
+input1.value = 'foo';
+</script>
+<p>Pass if it doesn't crash</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/ua-shadow-select-all-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698