Open Bug 1418299 Opened 2 years ago Updated 2 years ago

devtools.panels.create() should accept multiple icon sizes

Categories

(WebExtensions :: Developer Tools, enhancement, P3)

enhancement

Tracking

(firefox59 affected)

Tracking Status
firefox59 --- affected

People

(Reporter: ecfbugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

Currently, the iconPath parameter of devtools.panels.create() is always a string (see https://dxr.mozilla.org/mozilla-central/rev/a3f183201f7f183c263d554bfb15fbf0b0ed2ea4/browser/components/extensions/schemas/devtools_panels.json#335). This makes supporting HiDPI screens unnecessarily complicated, while also being inconsistent to other APIs such as browserAction (see https://dxr.mozilla.org/mozilla-central/rev/a3f183201f7f183c263d554bfb15fbf0b0ed2ea4/browser/components/extensions/schemas/browser_action.json#162). It should be possible to pass both a string and an object defining multiple icon sizes.

Note that Chrome developers probably don't care because Chrome currently doesn't seem to display that icon anywhere.
Priority: -- → P3
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.