Skip to content

Commit

Permalink
πŸ’ž Improve tab favicon compatibility by setting image attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Jan 19, 2024
1 parent 0e83248 commit 52e4414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/tabs/content/browser-internal-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ class BrowserTab extends MozElements.MozTab {
}

this.setAttribute("icon", iconURI);
// The image attribute is needed for compatibility:
this.setAttribute("image", iconURI);

const shouldHideIcon =
(!iconURI.length || iconURI == BrowserTabsUtils.DEFAULT_TAB_ICON) &&
Expand Down

0 comments on commit 52e4414

Please sign in to comment.