Chrome Web Store Approval Does NOT recognize extension using chrome apis. Ask to Remove Permission.

206 views
Skip to first unread message

Chris Pakken

unread,
Oct 4, 2024, 2:54:48 PM10/4/24
to Chromium Extensions
In my extension, I am using vite (esbuild) to build and minify my code before I zip and submit for approval. 
```ts
const browser = ((globalThis as any).browser || (globalThis as any).chrome) as typeof chrome

export const chromeTabs = browser.tabs
export const chromeWindows = browser.windows
export const chromeStorage = browser.storage
export const chromeCommands = browser.commands
export const chromeRuntime = browser.runtime

export const chromeDisplay = browser.system.display
export const chromeAction = browser.action
export const chromeAlarms = browser.alarms
export const chromeTabGroups = browser.tabGroups
export const chromeScripting = browser.scripting
export const chromeSessions = browser.sessions
```
I use this file to export all my chorme APIs, so that it can resolve some compatibility issues between firefox/chrome/edge (without using webextension polyfill) and also to minify imported file size since the variables are minified throughout the extensions (instead of using chrome.tabs, chromeTabs can be minified)

However when I submit the extension to the chrome store, I get 'Purple Potassium' violation, which says I am NOT using the following permissions(s), and it lists ALL the permissions I am requesting. 

I think the webstore does not recognize or detect the way I am exporting the chrome variables and thinks I am not using the chrome apis at all.

Has anyone run into this issue? Do I have to replace these variables and explicitly use chrome.tabGroups (for example) for chrome webstore to recognize I am using tabGroups permission?

Oliver Dunk

unread,
Oct 4, 2024, 2:58:59 PM10/4/24
to Chris Pakken, Chromium Extensions
Hi Chris,

Are you still running into this? If so, could you share the item ID?

For the one extension I see under your email, it looks like you resubmitted and the submission was approved a few hours ago :)
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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/5745b91c-066e-4e8d-9206-ced35d2d9e04n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages