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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <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.
2 <body>
3 <button type="button" id="button1">FOOO</button>
4
5 <script>
6 var button1 = document.getElementById('button1');
7 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.
8 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
9 input1.setSelectionRange(0);
10 input1.type='week';
yosin_UTC9 2015/01/14 01:33:44 nit: Please put spaces around |=|
keishi 2015/01/16 05:08:41 Done.
11 var oSelection = window.getSelection();
12 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.
13 oSelection.deleteFromDocument();
14 input1.value = 'foo';
15 </script>
16 <p>Pass if it doesn't crash</p>
17 </body>
18 </html>
OLDNEW
« 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