Skip to content

Commit de175bf

Browse files
committed
fix: Fixer resizing the sidebar break the urlbar formatting, b=(no-bug), c=common, workspaces
1 parent a6bc8d7 commit de175bf

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/browser/components/urlbar/UrlbarValueFormatter.sys.mjs b/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
2+
index dfa91b76ad3890ceadb1b1b5d7a63b7074fbb776..6369fa1cdb242de32338bbce6debcdab2a04ca02 100644
3+
--- a/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
4+
+++ b/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
5+
@@ -585,6 +585,7 @@ export class UrlbarValueFormatter {
6+
this.window.requestAnimationFrame(() => {
7+
if (instance == this._resizeInstance) {
8+
this.#ensureFormattedHostVisible();
9+
+ this._formatURL();
10+
}
11+
});
12+
}, 100);

src/zen/common/ZenUIManager.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ var gZenUIManager = {
8484
);
8585
gZenVerticalTabsManager.actualWindowButtons.removeAttribute('zen-has-hover');
8686
gZenVerticalTabsManager.recalculateURLBarHeight();
87-
setTimeout(gURLBar.formatValue.bind(gURLBar), 350);
8887
if (!this._preventToolbarRebuild) {
8988
setTimeout(() => {
9089
gZenWorkspaces.updateTabsContainers();

src/zen/workspaces/ZenWorkspaces.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,8 +2540,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
25402540
})
25412541
);
25422542
}
2543-
2544-
setTimeout(gURLBar.formatValue.bind(gURLBar), 0);
25452543
}
25462544

25472545
async _fixCtrlTabBehavior() {

0 commit comments

Comments
 (0)