I'm working on an extension which opens up a file.html from the Browser Action's popup. file.html is located in the extension's folder.
Let's say my contentscript.js is simply
alert("Hello");
And my manifest.json contains (among other things)
"content_scripts":
[
{
"matches" : [ "<all_urls>" ],
"js" : [ "contentscript.js" ],
}
],
Now, the alert shows up on every page I'm visiting, even file.html when opened normally. But the alert (or anything from the contentscript) doesn't show up when opened from this URL :
chrome-extension://cfhlgeljdipnicgineoheoihdofhnlef/page.html
I'm not sure how to make it accept the contentscript, any help will be appreciated.
EDIT : topic already discussed here : Does content_scripts matches "chrome-extension://*/*" work?