Type | Object |
---|---|
Mandatory | No |
Manifest version | 2 or higher |
Example |
|
Externally connectable controls which other extensions and web pages can communicate with an extension using runtime.connect()
and runtime.sendMessage()
message passing. If externally_connectable
is not specified, all extensions can communicate with each other but not with web pages.
Note: For communication with web pages:
- In Chrome,
chrome.runtime.connect
andchrome.runtime.sendMessage
are used. These methods are only available when there is at least one extension listening for messages, see chrome.runtime will no longer be defined unconditionally in Chrome 106 for more details. - In Safari,
browser.runtime.connect
andbrowser.runtime.sendMessage
are used. - In Firefox, neither API is supported. See Firefox bug 1319168.