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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html

Issue 2270663002: Selection API of INPUT/TEXTAREA should not update FrameSelection without focusing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust more tests Created 4 years, 4 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: third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html b/third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html
index 9b0a1eb47fe7d6ee1aeb03cef79feac631df11cb..f70548b200ed443eaf848a1cb670db6992928985 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html
@@ -40,6 +40,7 @@ function selectLine(node) {
range.setEnd(container, range.startOffset + 'in'.length);
selection.addRange(range);
} else {
+ node.focus();
node.selectionDirection = 'none';
node.selectionStart = node.value.search('ine 2');
node.selectionEnd = node.selectionStart + 'in'.length;

Powered by Google App Engine
This is Rietveld 408576698