Skip to content

Commit 7b043e6

Browse files
committed
Clarify the cases in which no external extensions can connect to the extension.
Also highlight runtime.onConnectExternal and runtime.onMessageExternal
1 parent f9eba56 commit 7b043e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specification/index.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ This key may be present.
146146

147147
The <a href="#key-externally_connectable">`externally_connectable`</a> key declares which extensions and web pages can establish connections to the extension using [=runtime.connect()=] and [=runtime.sendMessage()=]. If omitted, all extensions may connect, but no web pages can connect.
148148

149+
A connection from an external web page or extension triggers the [=runtime.onConnectExternal=] event listener to fire. Similarly, a message sent by an external web page or extension triggers the [=runtime.onMessageExternal=] event listener to fire.
150+
149151
This key may be present and may include the following optional keys:
150152

151153
#### Key `ids`
152154

153-
A [=list=] of [=extension IDs=] that specifies which extensions can communicate with the extension. To allow all extensions, include the pattern `*` in the list. If left empty or omitted, no extensions can connect.
155+
A [=list=] of [=extension IDs=] that specifies which extensions can communicate with the extension. To allow all extensions to connect, include the wildcard pattern `*`. If left empty or omitted while the `externally_connectable` key is present, no extensions can connect.
154156

155157
#### Key `matches`
156158

0 commit comments

Comments
 (0)