Due to recent changes to the Chrome API, my plugin throws this error:
Error during tabs.executeScript: Cannot access the contents of the URL "Chrome extension: //ecfgljdfndkhhbmhcnelbpnhkflgiokp/cm_signature_editor.html". The expansion manifest must request permission to access this host.
It has never been so. Now I am wondering how to get the chrome extension url into the manifest file:
I know that I can get the url or resource in my extension, for example:
chrome.extension.getURL('/manifest.json')
But I do not know how this can work in the manifest file.
Is there any other way to make this code work?
chrome.tabs.executeScript(null, {code:function_to_execute}, function() {
Interestingly, even when I hardcode the chrome URL, it doesn't work (I get the same error)
"permissions" : [ "tabs", "contextMenus", "chrome-extension://ecfgljdfndkhhbmhcnelbpnhkflgiokp/*" ],
source share