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:
@@ -254,7 +254,7 @@ class HTMLTextAreaElement final : public TextControlElement,
|
||||
// via bindings.
|
||||
void SetCustomValidity(const nsAString& aError);
|
||||
|
||||
void Select();
|
||||
MOZ_CAN_RUN_SCRIPT void Select();
|
||||
Nullable<uint32_t> GetSelectionStart(ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT void SetSelectionStart(
|
||||
const Nullable<uint32_t>& aSelectionStart, ErrorResult& aError);
|
||||
|
||||
Reference in New Issue
Block a user