Closed Bug 1556485 Opened 6 years ago Closed 5 years ago

Firefox sidebar should respect icon context fill

Categories

(WebExtensions :: Frontend, defect)

68 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rfeeley, Unassigned)

References

Details

Attachments

(1 file)

Attached image sidebar.png

STEPS TO REPRODUCE
Enable dark theme
Install Notes add-on
Customize Notes icon into the toolbar
Open sidebar

EXPECTED RESULTS
Notes icon in sidebar switcher is light like it is in the toolbar

ACTUAL RESULTS
Icon is dark on dark

Component: Toolbars and Customization → Frontend
Product: Firefox → WebExtensions
Version: 68 Branch → Firefox 68

This is not a bug in Firefox. The Notes add-on (version 4.3.5) uses icons/notes.svg as the sidebar_action.default_icon. This is an image without context-fill. The browser_action icon uses icons/notes-fill.svg, which does have context-fill. When I update the icon, by opening a debugger via about:debugging and running browser.sidebarAction.setIcon({path: "icons/notes-fill.svg"});, then the expected result is shown.

Although context-fill seems to work, this is probably not what we want to support in the long term, as previously we decided against using context-fill for customizing extension components in the browser UI (bug 1391980). context-fill only works for Mozilla extensions (by bug 1377302).

Third-party add-ons cannot easily set icons for a specific theme (unless they use the theme API to detect the current theme, and dynamically set the icon with sidebarAction.setIcon or pageAction.setIcon). I filed bug 1558587 to fill this gap.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
See Also: → 1558587
Version: Firefox 68 → 68 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: