Skip to content

Commit cbfcb1c

Browse files
committed
fix(extension): drop unused scripting+activeTab permissions (store rejection)
Chrome Web Store rejected v0.1.0: 'scripting' requested but unused. The content script is statically declared via content_scripts, and the popup's sendMessage is covered by host_permissions, so neither scripting nor activeTab is needed. Narrow permissions to ['storage'] only, bump to v0.1.1, rebuild, refresh the downloadable zip, and update the privacy page + publishing notes.
1 parent c11aa66 commit cbfcb1c

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

extension/PUBLISHING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ Free, like the rest of shoplit. Sign up at https://shoplit.in
4848
`Add a product from a supported retailer's page to the user's shoplit cart.`
4949

5050
**Permission justifications:**
51-
- **activeTab** — Read the product on the page the user is currently viewing, only when they click the extension.
52-
- **scripting** — Extract the product details (title, image, price, link) from the active product page when invoked.
5351
- **storage** — Store the user's shoplit connection token locally so they stay signed in.
5452
- **host permission — retailer sites** (amazon, myntra, nykaa, flipkart, ajio) — Show the "Add to shoplit" button and read the product on supported shopping sites.
5553
- **host permission — shoplit.in** — Call the shoplit API to list the user's carts and add the product.

extension/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "shoplit — add to cart",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"description": "Add any product to your shoplit cart from Amazon, Myntra, Nykaa, Flipkart, AJIO.",
66
"homepage_url": "https://shoplit.in",
77
"icons": { "16": "icons/16.png", "48": "icons/48.png", "128": "icons/128.png" },
@@ -11,7 +11,7 @@
1111
"default_icon": { "16": "icons/16.png", "48": "icons/48.png", "128": "icons/128.png" }
1212
},
1313
"background": { "service_worker": "service-worker.js", "type": "module" },
14-
"permissions": ["activeTab", "scripting", "storage"],
14+
"permissions": ["storage"],
1515
"host_permissions": [
1616
"https://shoplit.in/*",
1717
"https://*.nykaa.com/*",

web/app/(public)/legal/extension-privacy/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export default function ExtensionPrivacyPage() {
4242

4343
<h2 className="font-serif text-2xl mt-8 mb-2">Permissions, explained</h2>
4444
<ul className="leading-relaxed text-ink list-disc pl-5 space-y-1">
45-
<li><strong>activeTab / scripting</strong> — read the product details of the page you&apos;re on, when you invoke the extension.</li>
4645
<li><strong>storage</strong> — keep your connection token so you stay signed in.</li>
4746
<li><strong>host access (retailer sites)</strong> — show the &ldquo;Add to shoplit&rdquo; button and read the product on supported shopping sites.</li>
4847
<li><strong>host access (shoplit.in)</strong> — call the shoplit API to list your carts and add the product.</li>

web/public/shoplit-extension.zip

-13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)