Skip to content

Commit 37e0b1f

Browse files
ltenmozmoz-wptsync-bot
authored andcommitted
Return false in EditorBase::CanKeepHandlingFocusEvent if focused element is not editable.
Differential Revision: https://phabricator.services.mozilla.com/D294734 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2032191 gecko-commit: 6a0dd14ffd76be3101fcdc48edef352f0a93cb24 gecko-commit-git: 4af36fb850037f785c134dc6aa379985b853dc2e gecko-reviewers: masayuki
1 parent c069afa commit 37e0b1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

selection/user-select-on-input-and-contenteditable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
let oldOffset = getSelection().focusOffset;
3636
await test_driver.click(div);
3737
assert_not_equals(oldOffset, getSelection().focusOffset, "Selection should've moved on click.");
38-
getSelection().focusOffet = 0;
38+
getSelection().collapse(div);
3939
}, `selection for ${value}`);
4040
}
4141
</script>

0 commit comments

Comments
 (0)