Proposal: restrict content_scripts.all_frames
to specific main_frame
origins.
#117
Labels
enhancement
Enhancement or change to an existing feature
proposal
Proposal for a change or new feature
topic: scripting
To reduce the attack surface of
content_scripts
, I'm proposing to allow authors to restrictcontent_scripts.all_frames
to specificmain_frame
origins or matches. Imagine it like this:This makes sure content-scripts are not changing anything in situations they are not meant to make changes.
Basically the goal here is to only inject content_scripts if and only if the parent frame matches what the author specified.
The text was updated successfully, but these errors were encountered: