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

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 | Source/core/editing/VisibleSelection.cpp » ('j') | Source/core/editing/VisibleSelection.cpp » ('J')
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..59dfa150ea15b12c43833cdda346c423fe6f19a0
--- /dev/null
+++ b/LayoutTests/fast/forms/ua-shadow-select-all-crash.html
@@ -0,0 +1,18 @@
+<html>
yosin_UTC9 2015/01/14 01:33:44 nit: Could you add "<!DOCTYPE html>" to make Blink
keishi 2015/01/16 05:08:41 Done.
+<body>
+<button type="button" id="button1">FOOO</button>
+
+<script>
+var button1 = document.getElementById('button1');
+var input1=document.createElement('input');
yosin_UTC9 2015/01/14 01:33:44 nit: Please put spaces around |=|
keishi 2015/01/16 05:08:41 Done.
+button1.appendChild(input1);
yosin_UTC9 2015/01/14 01:33:44 Can we put <input type="week"> in markup rather th
keishi 2015/01/16 05:08:41 Done. Changing the type later is the important bit
+input1.setSelectionRange(0);
+input1.type='week';
yosin_UTC9 2015/01/14 01:33:44 nit: Please put spaces around |=|
keishi 2015/01/16 05:08:41 Done.
+var oSelection = window.getSelection();
+document.execCommand('SelectAll', false, false);
yosin_UTC9 2015/01/14 01:33:44 nit: We need first argument only.
keishi 2015/01/16 05:08:41 Done.
+oSelection.deleteFromDocument();
+input1.value = 'foo';
+</script>
+<p>Pass if it doesn't crash</p>
+</body>
+</html>
« no previous file with comments | « no previous file | Source/core/editing/VisibleSelection.cpp » ('j') | Source/core/editing/VisibleSelection.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698