w3c / webextensions

Charter and administrivia for the WebExtensions Community Group (WECG)
Other
576 stars 50 forks source link

Content script injection inconsistencies in the sidePanel #616

Open grahamlangford opened 1 month ago

grahamlangford commented 1 month ago

Context

Related Discussions

twschiller commented 1 month ago

For reference, the manifest for the content script is:

    {
      "matches": ["*://*/*"],
      "exclude_matches": ["https://*.googleapis.com/*"],
      "js": ["contentScript.js"],
      "css": ["contentScript.css"],
      "all_frames": true,
      "match_about_blank": true,
      "run_at": "document_idle"
    },

In the sidebar, we need to iframe some 3rd party content. The structure we use is:

Our assumption is the expected behavior is the Chrome behavior - that the content script is injected into frames within the sidebar?

tophf commented 1 month ago

Might be helpful to clarify that you mean the extension's own content script and indeed you and Chrome are correct here because how else the extension would be able to scrape a web site embedded in its page?