--
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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/20df3fec-3776-45e8-b5e1-ba3f64eea958%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAOsQqB%3DrPtTb-9jfF4Mr9zV8e8%2BGZPciOFuAQJ4D%3Do%2BbLwvEFw%40mail.gmail.com.
--
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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/8bb0a5ae-4082-480b-a3d6-0d44fdefd684n%40chromium.org.
Hi Oliver,
Need clarification:
CASE-1: In my extension, user is prompted to grant permission for the host URL (for example, https://abc.com/) & it is working when user grants permission.
When I remove the permission for the host URL (using chrome.permissions.remove API) then it is not getting removed under chrome://extensions tab (If I check using chrome.permissions.contains API then it says “false” as permission removed successfully).
Do you have any plan to fix this issue of removing host URL under chrome://extensions tab once it is removed programmatically. If so, when can we expect the fix be available in chrome browser.
CASE-2: We have MV2 extension in production with host permission to allow any URL’s ("permissions":["https://*/"]). Now we are migrating our extension to MV3 and allow user to grant permission for host URL dynamically ("optional_host_permissions": ["https://*/*"] in manifest.json & using the method chrome.permissions.request API to prompt consent for user).
It prompts user to grant permission for host URL, even if user deny to grant permission, extension can access the new host URL. So, if I check using chrome.permissions.contains API then it says “true” for any given URL (as permission is granted).
I tested in chrome stable browser v131.0.6778.265.
Is this is known issue OR could you please let us know how to mitigate this issue when migrated from MV2 to MV3?
Thanks in Advance,
Shashikiran
Do you have any plan to fix this issue of removing host URL under chrome://extensions tab once it is removed programmatically. If so, when can we expect the fix be available in chrome browser.
Is this is known issue OR could you please let us know how to mitigate this issue when migrated from MV2 to MV3?
I've interpreted this to mean that if I request, for example, the tabs permission, then I should remove the permission immediately after calling tabs.query().
> We are currently discussing changing the behavior of `permissions.remove` to remove permissions from both the active and granted set. If we decide to make that change, it would fix this issue.
The documentation says developers "should remove permissions when you no longer need them. After a permission has been removed, calling permissions.request() usually adds the permission back without prompting the user." I've interpreted this to mean that if I request, for example, the tabs permission, then I should remove the permission immediately after calling tabs.query(). If everyone else interpreted it this way then changing what remove() does will annoy a lot of users and/or developers! Since the users will (almost always) only encounter the list of permissions in the extension details page, a better resolution would be to add a button there to remove the permissions they granted since installation. That button should only be visible/enabled if the optional permissions affect the permissions list (eg. not ones like Alarms).Anyway, I found this discussion because I was looking for a way to remove permissions for an extension currently in development. I would like to be able to invoke its permissions dialogs at will without first uninstalling and reinstalling the unpacked extension, but there does not seem to be a way to do this. Since the functional area is under discussion, I'd like to suggest that whatever the outcome regarding remove(), it should always completely remove permissions from extensions which are loaded unpacked. There is precedent for having different behaviour in unpacked extensions, eg. there's no limit to how often an Alarm can fire in an unpacked extension.Regards