Merge commit from fork

This commit is contained in:
mr. m
2026-05-04 20:20:47 +02:00
committed by GitHub
parent 1bea3d401c
commit ce1ee9228b

View File

@@ -698,7 +698,16 @@ window.gZenUIManager = {
this.urlbarShowDomainOnly
) {
let url = BrowserUIUtils.removeSingleTrailingSlashFromURL(aURL);
return url.startsWith("https://") ? url.split("/")[2] : url;
requestIdleCallback(() => {
// Scroll the urlbar all the way to the right so that
// the domain is always visible when the url is too long.
gURLBar.inputField.scrollLeft = gURLBar.inputField.scrollWidth;
});
let stripped = url.startsWith("https://") ? url.split("/")[2] : url;
if (stripped.startsWith("www.")) {
stripped = stripped.substring(4);
}
return stripped;
}
return BrowserUIUtils.trimURL(aURL);
},