Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Adding new permissions with different behaviors for new vs. upgrading users

238 views
Skip to first unread message

DreamBuilder Team

unread,
Apr 16, 2025, 5:30:42 AMApr 16
to Chromium Extensions
Hi

I want to add a new permission to host_permissions, but I need clarification on the behavior:
  • For new users installing the extension for the first time, I'd like the permission to be enabled by default (by declaring it in host_permissions).
  • For existing users upgrading to the new version, I want to make this permission optional (with the ability to enable/disable it).
    If they decline, they can still use the extension without this permission.

From what I've found, this doesn't seem possible because:
  • If I declare it in optional_host_permissions, it will be optional for both new and upgrading users.
  • If I keep it in host_permissions, it will be mandatory for everyone and show WARNING for old users.
    Then if old user decline new permission - app will get completely disabled.
Is this correct? Or are there alternative approaches to achieve this behavior?

Any insights would be appreciated!

Oliver Dunk

unread,
Apr 16, 2025, 5:33:12 AMApr 16
to DreamBuilder Team, Chromium Extensions
Hi,

Your understanding of what is possible today is correct.

There is some discussion of an alternative approach in the WebExtensions Community Group that you might be interested in: https://github.com/w3c/webextensions/pull/798. We're generally open to this, but note that it is just a proposal from an external contributor right now, and not something we have approved or are currently implementing.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/be9cbbf1-f0e3-4845-b0ad-d80f32cc53b0n%40chromium.org.

DreamBuilder Team

unread,
Apr 16, 2025, 5:43:01 AMApr 16
to Chromium Extensions, Oliver Dunk, Chromium Extensions, DreamBuilder Team
Thank you for such a quick reply, 

Indeed, this appears to be exactly what we require, particularly for extensions that cater to thousands of users, where the risk of losing users due to the new Permission WARNING is considerable.

Do you have any idea when this might be taken into validation&development?

Oliver Dunk

unread,
Apr 22, 2025, 5:34:42 AMApr 22
to DreamBuilder Team, Chromium Extensions
Not at the moment - but hopefully it will continue to move forward.

We need to all approve the proposal, and then it will be a case of prioritizing this on our product roadmap. We'll definitely make sure to share when it is available though.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB

Reply all
Reply to author
Forward
0 new messages