Open Bug 1418299 Opened 7 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: jwkbugzilla, Unassigned)

References

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
See Also: → 1618580
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.