Back to blog

Chrome extension permissions, and the warnings users actually see

Which permissions trigger scary install warnings, which are silent, and the swaps that keep your features while removing the warning that costs you installs.

ExtensionBill Team 6 min read

Two extensions do the same job. One shows “Read your browsing history” at install. The other shows nothing. The second one wins, every time, and the difference is usually one line in manifest.json.

Permissions are the last thing between a user deciding to try your extension and actually installing it. They are also the most common cause of a Chrome Web Store rejection. This is which ones cost you, and what to use instead.

What the user actually sees

Chrome generates the install dialog from your declared permissions. Some permissions produce an alarming sentence, and many produce nothing at all. The exact strings, from the official permissions reference:

PermissionInstall warning
tabs”Read your browsing history.”
history”Read and change your browsing history on all signed-in devices.”
bookmarks”Read and change your bookmarks.”
downloads”Manage your downloads.”
management”Manage your apps, extensions, and themes.”
clipboardRead”Read data you copy and paste.”
geolocation”Detect your physical location.”
notifications”Display notifications.”
storagenone
cookiesnone
scriptingnone
webRequestnone
activeTabnone
alarmsnone
identitynone

Two things jump out of that table.

storage, scripting, alarms, and cookies are free. They show no warning. Nearly every extension needs some of these, and none of them cost you anything at install time.

tabs is expensive and usually unnecessary. It produces the single most alarming string in the list, and most extensions declare it for something that does not need it.

Host permissions are separate from this table. They generate a “read and change your data” warning scoped to the match patterns you declared, which is why <all_urls> produces the broadest and scariest version of it.

The tabs trap

tabs does not grant access to tabs. You can already call chrome.tabs.query, chrome.tabs.create, and chrome.tabs.sendMessage without it. What tabs grants is access to the sensitive properties on the Tab object: url, pendingUrl, title, and favIconUrl.

So ask precisely: do you need the URL of tabs the user is not looking at?

  • Opening a checkout page in a new tab: no tabs permission needed
  • Counting or grouping tabs: no tabs permission needed
  • Messaging a content script: no tabs permission needed
  • Reading the URL of the tab the user is on right now: use activeTab
  • Reading URLs of every open tab in the background: yes, you need tabs

Dropping tabs for activeTab removes “Read your browsing history” from the install dialog. For most extensions, no other single change helps more.

How activeTab actually works

activeTab grants temporary host access to the current tab, but only after an explicit user gesture: clicking your action icon, using your keyboard shortcut, or picking your context menu item. Access is revoked when the user navigates away or closes the tab.

{
  "permissions": ["activeTab", "scripting"],
  "action": { "default_title": "Extract the thing" }
}
chrome.action.onClicked.addListener(async (tab) => {
  // The gesture just granted access to this tab. No host_permissions needed.
  const [{ result }] = await chrome.scripting.executeScript({
    target: { tabId: tab.id },
    func: () => document.title,
  })
  console.log(result)
})

The tradeoff is real: activeTab cannot run on page load, and cannot touch tabs the user has not activated your extension on. If your extension genuinely must act automatically on every page (an ad blocker, a price tracker), you need host permissions and you should say why in your listing.

Narrow your host permissions

If you do need host access, the match pattern is where you win back trust. https://*.github.com/* reads very differently from <all_urls>, both to the user and to a reviewer.

{
  "host_permissions": ["https://*.github.com/*"]
}

Rules that keep patterns tight:

  • Name real domains instead of *://*/* whenever you can list them
  • Prefer https:// over *://; almost nothing needs plain HTTP in 2026
  • Put a path constraint on it if your feature only touches one section
  • If the domain list is long but finite, list it; a long array still reads as scoped, <all_urls> never does

Match patterns are easy to get subtly wrong, and a wrong one either fails silently or over-grants. Check yours with the match pattern tester.

Ask later, not at install

The pattern that gets you both installs and capability: ship the minimum, then request the scary permission at the moment the user chooses the feature that needs it. A user who just clicked “Export to my downloads folder” approves a downloads prompt without hesitating. The same prompt at install is friction with no context.

{
  "permissions": ["storage"],
  "optional_permissions": ["downloads"],
  "optional_host_permissions": ["https://*/*"]
}
// Must be called from a user gesture (a click handler), not on load.
exportButton.addEventListener('click', async () => {
  const granted = await chrome.permissions.request({ permissions: ['downloads'] })
  if (!granted) {
    showMessage('Export needs download access. You can enable it any time.')
    return
  }
  await runExport()
})

Two details people miss:

  1. chrome.permissions.request() must run inside a user gesture, and it must run from an extension page (popup, options, side panel), not from the service worker.
  2. Users can revoke optional permissions at any time. Check with chrome.permissions.contains() before using the API rather than assuming a past grant still holds.

Use optional_host_permissions the same way: ship with access to nothing, and let the user grant a site when they first use your extension there.

Modern replacements for old permissions

Several permissions that used to be unavoidable now have narrower alternatives:

Instead ofUseWhy
webRequestBlocking + <all_urls>declarativeNetRequestMV3 requirement; rules are declarative so Chrome never hands you the request data
tabs for the current URLactiveTabNo install warning, gesture-scoped
<all_urls> host permissionoptional_host_permissions + runtime requestNothing at install, granted per site on demand
cookies for your own authchrome.storage.localYou control both ends; no need to read browser cookies
background persistent pageservice worker + alarmsRemoved in MV3 (see the lifecycle guide)

What reviewers check

Chrome Web Store reviewers compare your manifest against your bundle. A permission you declared but never call is the Purple Potassium violation (excessive permissions), and it is one of the most common rejections for otherwise-legitimate extensions.

The usual causes:

  • Prototype leftovers you forgot to delete
  • “Future-proofing” for a feature you have not built (explicitly called out as a violation)
  • Copy-pasted manifests from a tutorial
  • Permissions needed by a dependency you removed

Before every submission, walk each entry in permissions and host_permissions and point at the line of code that uses it. If you cannot, delete it. The manifest validator automates the first pass, and the full violation code list covers what happens if you miss one.

Say it in the listing

Whatever you end up needing, explain it where the user reads before installing. One line in the description, in plain language:

Needs access to github.com to read the pull request you are viewing. Nothing leaves your browser.

This costs you nothing, defuses the install dialog, preempts the review that says “why does this need my browsing history,” and doubles as the data disclosure a reviewer is looking for. It also pairs with the listing work in Chrome Web Store SEO.

Checklist

  • Every declared permission maps to a real call in the shipped bundle
  • tabs is gone unless you read URLs of non-active tabs
  • Host permissions name real domains, https:// only, narrowest path
  • Anything used by one optional feature is in optional_permissions
  • Runtime requests happen in a click handler on an extension page
  • chrome.permissions.contains() is checked before use, not assumed
  • The description explains, in one sentence, what access is needed and why