Permissions prompt asked for a permission that was already given in mv2

301 views
Skip to first unread message

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 5:04:45 PMOct 22
to Chromium Extensions, Oliver Dunk, Patrick Kettner

Hi i have an mv2 and mv3 extension, running the migration through this tool https://github.com/GoogleChromeLabs/extension-update-testing-tool gives disables the mv3 extension after the update and shows this prompt.

Screenshot 2024-10-22 at 3.39.57 PM.png

Why does it show texts for permissions that have already been granted in mv2

specifically notifications for example

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 6:01:18 PMOct 22
to Chromium Extensions, Ahmed Rafi Ullah, Oliver Dunk, Patrick Kettner
Any help with this would be greately appreciated!!

Patrick Kettner

unread,
Oct 22, 2024, 6:03:53 PMOct 22
to Ahmed Rafi Ullah, Chromium Extensions, Oliver Dunk
Can you share the mv2 and mv3 version of your extension? I am not able to replicate the behavior you mentioned

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 6:05:09 PMOct 22
to Chromium Extensions, Patrick Kettner, Chromium Extensions, Oliver Dunk, Ahmed Rafi Ullah
Yes the mv3 version is 

"manifest_version": 3,
"version": "4.0.0",
"version_name": "4.0.0",

and the mv2 version is 
"version": "3.4.11.1",
"manifest_version": 2,

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 6:05:50 PMOct 22
to Chromium Extensions, Ahmed Rafi Ullah, Patrick Kettner, Chromium Extensions
Do you mean the actual package ?

Patrick Kettner

unread,
Oct 22, 2024, 6:06:40 PMOct 22
to Ahmed Rafi Ullah, Chromium Extensions
yes

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 6:15:06 PMOct 22
to Chromium Extensions, Patrick Kettner, Chromium Extensions, Ahmed Rafi Ullah


Heres the drive link,

https://drive.google.com/drive/folders/1SlFkxJEL447Q5fTNvEFkLG6ANrkjEzLw?usp=drive_link

I also invited you there are two zipped folders one for mv2 and one for mv3.

Thank you for taking your time to look at this

Ahmed Rafi Ullah

unread,
Oct 22, 2024, 7:06:13 PMOct 22
to Chromium Extensions, Ahmed Rafi Ullah, Patrick Kettner, Chromium Extensions
Log in is not required to test this

Ahmed Rafi Ullah

unread,
Oct 23, 2024, 2:25:01 AMOct 23
to Chromium Extensions, Ahmed Rafi Ullah, Patrick Kettner, Chromium Extensions
I investigated some more and found that contentSetting was causing the issue, though it seems strange that one permission that can trigger a warning would show other permissions that also trigger warnings.

My mv2 manifest is this

"permissions": [
"<all_urls>",
"proxy",
"management",
"tabs",
"webRequest",
"webRequestBlocking",
"activeTab",
"storage",
"unlimitedStorage",
"contextMenus",
"privacy",
"webNavigation",
"notifications",
"cookies"
],

While mv3 was this 
"permissions": [
"activeTab",
"contentSettings",
"contextMenus",
"declarativeNetRequestWithHostAccess",
"privacy",
"proxy",
"notifications",
"scripting",
"storage",
"tabs",
"webRequest",
"webRequestAuthProvider",
"management",
"alarms",
"offscreen",
"unlimitedStorage"
],


the manifest file below with contentSettings in the optional permissions field fixes this issue, though im uneasy because i think this may also be a bug ? Im not sure

"permissions": [
"activeTab",
"contextMenus",
"declarativeNetRequestWithHostAccess",
"privacy",
"proxy",
"notifications",
"scripting",
"storage",
"tabs",
"webRequest",
"webRequestAuthProvider",
"management",
"alarms",
"offscreen",
"unlimitedStorage"
],
"optional_permissions": ["contentSettings"],

Ahmed Rafi Ullah

unread,
Oct 23, 2024, 2:26:58 AMOct 23
to Chromium Extensions, Ahmed Rafi Ullah, Patrick Kettner, Chromium Extensions
"though it seems strange that one permission that can trigger a warning would show other permissions that also trigger warnings."
and even though those permissions initially were already granted in the mv2 version of the extension in the first place.

Patrick Kettner

unread,
Nov 4, 2024, 4:28:43 PMNov 4
to Ahmed Rafi Ullah, Chromium Extensions
Thanks for the report, Ahmed! Did you get a chance to file something at crbug?
Reply all
Reply to author
Forward
0 new messages