feat: Don't trim the URL if the omnibox has been opened, b=no-bug, c=common

This commit is contained in:
mr. m
2026-02-15 22:41:00 +01:00
parent 1493c6be21
commit 119bedce30

View File

@@ -570,10 +570,12 @@ window.gZenUIManager = {
},
urlbarTrim(aURL) {
if (gURLBar.hasAttribute("breakout-extend")) {
return aURL;
}
if (
gZenVerticalTabsManager._hasSetSingleToolbar &&
this.urlbarShowDomainOnly &&
!gURLBar.hasAttribute("breakout-extend")
this.urlbarShowDomainOnly
) {
let url = BrowserUIUtils.removeSingleTrailingSlashFromURL(aURL);
return url.startsWith("https://") ? url.split("/")[2] : url;