Skip to content

Commit

Permalink
Clarify the restrictions on SecureContext combinations. (#763)
Browse files Browse the repository at this point in the history
Fixes #762.
  • Loading branch information
Ms2ger authored and bzbarsky committed Aug 6, 2019
1 parent 861bf48 commit 5c57dc1
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -9862,19 +9862,14 @@ If [{{SecureContext}}] appears on an [=overloaded=] [=operation=],
then it must appear on all overloads.

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

Note: This is because adding a [{{SecureContext}}] [=extended attribute=] on a
[=partial interface=], [=partial interface mixin=], or [=partial namespace=]
is shorthand for annotating each of its [=members=].
* an [=interface member=] and its [=interface=] or [=partial interface=];
* an [=interface mixin member=] and its [=interface mixin=] or [=partial interface mixin=];
* a [=namespace member=] and its [=namespace=] or [=partial namespace=].

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

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

0 comments on commit 5c57dc1

Please sign in to comment.