Skip to content

Output an icon size only#1739

Open
yfdyh000 wants to merge 1 commit into
FelisCatus:masterfrom
yfdyh000:iconsize
Open

Output an icon size only#1739
yfdyh000 wants to merge 1 commit into
FelisCatus:masterfrom
yfdyh000:iconsize

Conversation

@yfdyh000
Copy link
Copy Markdown
Contributor

What does this PR do?

  • Bug fix
  • Improvement
  • New feature

I think that outputting multiple sizes is unnecessary and it brings more processing time (CPU times, I see a big time at Firefox Nightly's IconDetails.normalize).
High resolution display is untested.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/setIcon
https://developer.chrome.com/extensions/browserAction

Compatibility

Is this PR compatible with old versions? Can users simply upgrade the extension?
Yes.
Please describe any possible breaking changes (or surprising UX differences).
Should not. Firefox Nightly tested.

Screenshots (if applicable)

N/A.

@yfdyh000
Copy link
Copy Markdown
Contributor Author

# Some legacy Chrome versions will panic if there are other icon sizes.
params.imageData = {19: params.imageData[19], 38: params.imageData[38]}   

need to be tested & fixed, or removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant