Bug 1679461 - Use SetSelectionRange in Select(), regardless of focus state r=masayuki
SelectAll() also is no-op without a frame, so this replaces it with SetSelectionRange. Differential Revision: https://phabricator.services.mozilla.com/D98184
This commit is contained in:
@@ -670,7 +670,7 @@ class HTMLInputElement final : public TextControlElement,
|
||||
|
||||
already_AddRefed<nsINodeList> GetLabels();
|
||||
|
||||
void Select();
|
||||
MOZ_CAN_RUN_SCRIPT void Select();
|
||||
|
||||
Nullable<uint32_t> GetSelectionStart(ErrorResult& aRv);
|
||||
MOZ_CAN_RUN_SCRIPT void SetSelectionStart(const Nullable<uint32_t>& aValue,
|
||||
|
||||
Reference in New Issue
Block a user