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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/52776.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 years, 10 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/fast/dom/52776.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/52776.html b/third_party/WebKit/LayoutTests/fast/dom/52776.html
index 3e4c894e97582366bbd05d2b54a3d78dbf3cff7b..b8d55cd36647b9578a5485082984299247a5f129 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/52776.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/52776.html
@@ -110,7 +110,8 @@
var test = document.getElementById('test');
var sel = getSelection();
- sel.collapse(test,0);
+ test.focus();
+ sel.collapse(test, 0);
sel.modify("move", "right", "lineBoundary");
sel.modify("move", "left", "character");
sel.modify("extend", "left", "character");

Powered by Google App Engine
This is Rietveld 408576698