Open Bug 1418299 Opened 2 years ago Updated 2 years ago
.panels .create() should accept multiple icon sizes
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.
You need to log in before you can comment on or make changes to this bug.