Skip to content

Commit dd06a9b

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 6d2086f commit dd06a9b

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
@@ -145,11 +145,13 @@ This key may be present.
145145

146146
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.
147147

148+
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.
149+
148150
This key may be present and may include the following optional keys:
149151
150152
#### Key `ids`
151153
152-
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.
154+
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.
153155

154156
#### Key `matches`
155157

0 commit comments

Comments
 (0)