Skip to content

Commit fc0946a

Browse files
committed
🐛 Fix issue where icon was hiding while document still loading
1 parent f10d425 commit fc0946a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/tabs/content/browser-internal-tab.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ class BrowserTab extends MozElements.MozTab {
429429

430430
const shouldHideIcon =
431431
(!iconURI.length || iconURI == BrowserTabsUtils.DEFAULT_TAB_ICON) &&
432+
!this.linkedBrowser?.docShell?.isLoadingDocument &&
432433
!initial;
433434

434435
if (shouldHideIcon) {

third_party/dothq/gecko-types/lib/nsIDocShell.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ export interface nsIDocShell {
3131
doCommandWithParams(command: string, params: /* @todo nsICommandParams */ any): void;
3232

3333
QueryInterface: (obj: any) => any;
34+
35+
isLoadingDocument: boolean;
3436
}

0 commit comments

Comments
 (0)