mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
ee5f146bcd
Installed privileged addons in GeckoView sometimes need to send messages from content scripts. Today we use the in-memory flag `ALLOW_CONTENT_MESSAGING` to allow a specific built-in addon to send messages from content scripts, but for installed extensions we need a way to persist this flag. To do this, this patch introduces a new privileged permission `nativeMessagingFromContent`, when this permission is present in the manifest, the addon will be allowed to send native messages from content scripts (note: the addon will also need `nativeMessaging` as usual). When the permission is not present, any attempt to send a native message from a content script will result in an error, similarly to what happens before this patch. Differential Revision: https://phabricator.services.mozilla.com/D72976 |
||
---|---|---|
.. | ||
android | ||
locales | ||
.eslintrc.js |