You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
activeTab permission not granting temporary host permission #163
Was testing Asana and ran into a problem with chrome.scripting.executeScript.
The extension's manifest registers activeTab and scripting permissions which should allow the background script to executeScript into the active tab. However, the extension also registers host_permissions:
When I click the browser action, a scripting.executeScript call is made which only works for asana and mail.google pages. All other pages get an error:
[1829990:0728/110812.404317:ERROR:extensions_browser_client.cc(72)] Extension Error:
OTR: false
Level: 2
Source: chrome-extension://khnpeclbnipcdacdkhejifenadikeghk/background_bundle.js
Message: Uncaught (in promise) Error: Cannot access contents of url "https://www.google.com/". Extension manifest must request permission to access this host.
ID: khnpeclbnipcdacdkhejifenadikeghk
Type: RuntimeError
Context: chrome-extension://khnpeclbnipcdacdkhejifenadikeghk/background_bundle.js
Stack Trace:
{
Line: 0
Column: 1
URL: chrome-extension://khnpeclbnipcdacdkhejifenadikeghk/background_bundle.js
Function: (anonymous function)
}
This does seem like a Electron issue but I figured I'd bring it up here first as you have way more knowledge regarding extension support in Electron :)
Activity
Kilian commentedon Jul 29, 2025
duplicate of #122