chrome.scripting.executeScript doesnt have a match_about_blank option

152 views
Skip to first unread message

Moe Bazzi

unread,
Aug 31, 2022, 1:51:56 PM8/31/22
to Chromium Extensions
Hey everyone,

so injecting a content script into a tab from the manifest file, there is a match_about_blank option that injects the content scripts into about:blank frames as well. But for injecting content scripts via the chrome.scripting.executeScript api, this option doesnt exist. How can I make surer my content scripts are injected into about:blank frames when injecting them dynamically with this api? 
 Thanks.

wOxxOm

unread,
Sep 1, 2022, 2:59:50 AM9/1/22
to Chromium Extensions, bazz...@gmail.com
It's enabled by default when allFrames is true.

Moe Bazzi

unread,
Sep 1, 2022, 3:00:52 AM9/1/22
to wOxxOm, Chromium Extensions
Awesome, thanks for the info ! You’re the best. 
Reply all
Reply to author
Forward
0 new messages