Skip to content

Commit d4bd6f0

Browse files
committed
[mv3] Inject scriptlets et al. in embedded frames
Not doing so prevented uBO Lite from properly defusing many anti-blockers.
1 parent 13b6554 commit d4bd6f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform/mv3/extension/js/scripting-manager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ function registerProcedural(context, proceduralDetails) {
247247
context.toAdd.push({
248248
id: 'css-procedural',
249249
js,
250+
allFrames: true,
250251
matches,
251252
excludeMatches,
252253
runAt: 'document_end',
@@ -323,6 +324,7 @@ function registerDeclarative(context, declarativeDetails) {
323324
context.toAdd.push({
324325
id: 'css-declarative',
325326
js,
327+
allFrames: true,
326328
matches,
327329
excludeMatches,
328330
runAt: 'document_start',
@@ -396,6 +398,7 @@ function registerScriptlet(context, scriptletDetails) {
396398
context.toAdd.push({
397399
id,
398400
js: [ `/rulesets/scripting/scriptlet/${id}.js` ],
401+
allFrames: true,
399402
matches,
400403
excludeMatches,
401404
runAt: 'document_start',
@@ -460,6 +463,7 @@ function registerScriptletEntity(context) {
460463
context.toAdd.push({
461464
id: 'scriptlet.entity',
462465
js,
466+
allFrames: true,
463467
matches,
464468
excludeMatches,
465469
runAt: 'document_start',
@@ -664,6 +668,7 @@ function registerSpecificEntity(context) {
664668
context.toAdd.push({
665669
id: 'css-specific.entity',
666670
js,
671+
allFrames: true,
667672
matches,
668673
excludeMatches,
669674
runAt: 'document_start',

0 commit comments

Comments
 (0)