Skip to content

Commit 5c57dc1

Browse files
Ms2gerbzbarsky
authored andcommitted
Clarify the restrictions on SecureContext combinations. (#763)
Fixes #762.
1 parent 861bf48 commit 5c57dc1

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

index.bs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9862,19 +9862,14 @@ If [{{SecureContext}}] appears on an [=overloaded=] [=operation=],
98629862
then it must appear on all overloads.
98639863

98649864
The [{{SecureContext}}] [=extended attribute=] must not be specified both on
9865-
an [=interface member|interface=], [=interface mixin member|mixin=], or [=namespace member=], and on
9866-
the [=partial interface=], [=partial interface mixin=], or [=partial namespace=] definition
9867-
the [=member=] is declared on.
98689865

9869-
Note: This is because adding a [{{SecureContext}}] [=extended attribute=] on a
9870-
[=partial interface=], [=partial interface mixin=], or [=partial namespace=]
9871-
is shorthand for annotating each of its [=members=].
9866+
* an [=interface member=] and its [=interface=] or [=partial interface=];
9867+
* an [=interface mixin member=] and its [=interface mixin=] or [=partial interface mixin=];
9868+
* a [=namespace member=] and its [=namespace=] or [=partial namespace=].
98729869

9873-
The [{{SecureContext}}] [=extended attribute=]
9874-
must not be specified on both an [=interface member=] and
9875-
the [=interface=] or [=partial interface=] definition the [=interface member=] is declared on.
9876-
It must also not be specified on both a [=namespace member=] and
9877-
the [=namespace=] or [=partial namespace=] definition the [=namespace member=] is declared on.
9870+
Note: This is because adding the [{{SecureContext}}] [=extended attribute=] on a [=member=] when
9871+
its containing definition is also annotated with the [{{SecureContext}}] [=extended attribute=]
9872+
does not further restrict the exposure of the [=member=].
98789873

98799874
An [=interface=] without the [{{SecureContext}}] [=extended attribute=]
98809875
must not [=interface/inherit=] from another interface

0 commit comments

Comments
 (0)