tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 772e9d4ff0af08e4adb815da1864ed9bcf523ec3
parent 5d654d58219b430a1c1ad04855be9be93242f058
Author: Dão Gottwald <dao@mozilla.com>
Date:   Wed, 26 Nov 2025 14:07:03 +0000

Bug 2002278 - Make _maybeSelectAll properly private. r=mbeier

Differential Revision: https://phabricator.services.mozilla.com/D274010

Diffstat:
Mbrowser/components/urlbar/content/UrlbarInput.mjs | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/browser/components/urlbar/content/UrlbarInput.mjs b/browser/components/urlbar/content/UrlbarInput.mjs @@ -4566,7 +4566,7 @@ export class UrlbarInput extends HTMLElement { * Determines if we should select all the text in the Urlbar based on the * Urlbar state, and whether the selection is empty. */ - _maybeSelectAll() { + #maybeSelectAll() { if ( !this._preventClickSelectsAll && this.#compositionState != lazy.UrlbarUtils.COMPOSITION.COMPOSING && @@ -4671,7 +4671,7 @@ export class UrlbarInput extends HTMLElement { switch (event.target) { case this.inputField: case this._inputContainer: - this._maybeSelectAll(); + this.#maybeSelectAll(); this.#maybeUntrimUrl(); break; @@ -4708,7 +4708,7 @@ export class UrlbarInput extends HTMLElement { return; } - this._maybeSelectAll(); + this.#maybeSelectAll(); } _on_focus(event) { @@ -4757,7 +4757,7 @@ export class UrlbarInput extends HTMLElement { } if (this.inputField.hasAttribute("refocused-by-panel")) { - this._maybeSelectAll(); + this.#maybeSelectAll(); } }