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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/5099303.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/editing/deleting/5099303.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/5099303.html b/third_party/WebKit/LayoutTests/editing/deleting/5099303.html
index f1d4a4c2cbaae5155aaad97163438a43772d7e38..5989039871bd8c99f23e0378c00363ca256ac6e3 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/5099303.html
+++ b/third_party/WebKit/LayoutTests/editing/deleting/5099303.html
@@ -4,5 +4,6 @@
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
+document.querySelector("div").focus();
sel.collapse(div, 0);
</script>

Powered by Google App Engine
This is Rietveld 408576698