Skip to content

Commit

Permalink
Bug 1911835 - Add methods to configure csp in USER_SCRIPT worlds r=zo…
Browse files Browse the repository at this point in the history
…mbie

Differential Revision: https://phabricator.services.mozilla.com/D228976

UltraBlame original commit: c00c85687c714ed2455a16f54df3abdecb208286
  • Loading branch information
marco-c committed Nov 26, 2024
1 parent 49e9550 commit 7950b1d
Show file tree
Hide file tree
Showing 7 changed files with 3,559 additions and 2 deletions.
80 changes: 80 additions & 0 deletions toolkit/components/extensions/ExtensionProcessScript.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,23 @@ sys
.
mjs
"
ExtensionUserScriptsContent
:
"
resource
:
/
/
gre
/
modules
/
ExtensionUserScriptsContent
.
sys
.
mjs
"
ExtensionWorkerChild
:
"
Expand Down Expand Up @@ -610,6 +627,20 @@ addMessageListener
"
Extension
:
UpdateUserScriptWorlds
"
this
)
;
Services
.
cpmm
.
addMessageListener
(
"
Extension
:
UpdatePermissions
"
this
Expand Down Expand Up @@ -1898,6 +1929,55 @@ case
"
Extension
:
UpdateUserScriptWorlds
"
:
{
let
policy
=
WebExtensionPolicy
.
getByID
(
data
.
id
)
;
if
(
policy
)
{
lazy
.
ExtensionUserScriptsContent
.
updateWorldConfig
(
extensions
.
get
(
policy
)
data
.
reset
data
.
update
)
;
}
break
;
}
case
"
Extension
:
UpdatePermissions
"
:
Expand Down
Loading

0 comments on commit 7950b1d

Please sign in to comment.