fix: Prevent urlbar unformatting when changing layouts, b=no-bug, c=common

This commit is contained in:
Mr. M
2025-06-12 20:03:27 +02:00
parent bf6e493f89
commit f240fabe77

View File

@@ -757,7 +757,9 @@ var gZenVerticalTabsManager = {
document.getElementById('urlbar').style.setProperty('--urlbar-height', '32px');
} else if (gURLBar.getAttribute('breakout-extend') !== 'true') {
try {
gURLBar.zenUpdateLayoutBreakout();
gURLBar.zenUpdateLayoutBreakout().then(() => {
gURLBar.valueFormatter._formatURL();
});
} catch (e) {
console.warn(e);
}