Skip to content

Commit

Permalink
chore: followup bug 1927111 - Don't rely on static position (top: aut…
Browse files Browse the repository at this point in the history
…o) for urlbar position
  • Loading branch information
onemen committed Nov 1, 2024
1 parent 9f682fa commit ab0e929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/chrome/content/tab/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,9 @@ Tabmix.tabsUtils = {
}
this.updateOverflowMaxWidth();
this.updateVerticalTabStrip();
if (Tabmix.isVersion(1340)) {
gURLBar.onWidgetAfterDOMChange(gURLBar.textbox.parentNode);
}
break;
}
}
Expand Down
4 changes: 4 additions & 0 deletions types/general.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,12 @@ interface gURLBar extends HTMLElement {
_whereToOpen: (event?: Event & {__tabmix__whereToOpen?: WhereToOpen}) => WhereToOpen;
focused: boolean;
handleCommand(event?: Event): void;
onWidgetAfterDOMChange(aNode: Node): void;
select: () => void;
setURI: (uri?: string, dueToTabSwitch?: boolean, dueToSessionRestore?: boolean, dontShowSearchTerms?: boolean, isSameDocument?: boolean) => void;
textbox: Node & {
parentNode: Node;
};
untrimmedValue: string;
view: UrlbarView;
value: string;
Expand Down

0 comments on commit ab0e929

Please sign in to comment.