tor-browser

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

commit 4d2b0084f2f439645e4b345cf7353bbbbed0966b
parent 44d73a751d067da5cd44f13ac404d38f2580da1f
Author: Dão Gottwald <dao@mozilla.com>
Date:   Mon, 15 Dec 2025 14:59:26 +0000

Bug 1989909 - Temporarily prevent the new search bar from overflowing. r=mbeier,urlbar-reviewers

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

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

diff --git a/browser/components/urlbar/content/UrlbarInput.mjs b/browser/components/urlbar/content/UrlbarInput.mjs @@ -364,6 +364,10 @@ export class UrlbarInput extends HTMLElement { this.#initOnce(); } + if (this.sapName == "searchbar") { + this.parentNode.setAttribute("overflows", "false"); + } + // Don't attach event listeners if the toolbar is not visible // in this window or the urlbar is readonly. if ( @@ -454,6 +458,10 @@ export class UrlbarInput extends HTMLElement { } #uninit() { + if (this.sapName == "searchbar") { + this.parentNode.removeAttribute("overflows"); + } + if (this._copyCutController) { this.inputField.controllers.removeController(this._copyCutController); delete this._copyCutController;