I have an extension doing two things: have some JS in content script and have a page_action button with a popup. It works fine with MV2, event without any host_permissions, but when I converted it to MV3 the content script is only executed when I click page_action button, not on page load.
Let’s say I have only this on content.js:
console.log("load");
Manifest.json:
"content_scripts": [
{
"matches": [
"*://*.example.com/*"
],
"js": [
"content.js"
],
"run_at": "document_idle"
}
]
...
"permissions": [
"tabs",
"storage"
]
...
"host_permissions": [
"*://*.example.com/*"
]
On example.com I don’t see any “load” message on page load but when I click page_action button I do see it. Did the content_script changed in MV3 or am I missing a something?