Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and clarify exposed dfn #464

Merged
merged 3 commits into from Dec 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 12 additions & 6 deletions index.bs
Expand Up @@ -8520,12 +8520,18 @@ is the [=set/intersection=] of the relevant construct's [=own exposure set=]
with the the [=host interface=]'s [=exposure set=].
Otherwise, it is the [=host interface=]'s [=exposure set=].

An [=interface=], [=namespace=], [=interface member=], or [=namespace member=] is
<dfn id="dfn-exposed" export>exposed</dfn> in a given ECMAScript global environment if the
ECMAScript global object implements an interface that is in the construct's [=exposure set=], and either:

* the [=relevant settings object=] for the ECMAScript global object is a [=secure context=]; or
* the construct is not [=available only in secure contexts=].
<div algorithm>
An [=interface=], [=namespace=], or [=member=] |construct| is <dfn id="dfn-exposed" export>exposed</dfn>
in a given [=Realm=] |realm| if the following steps return true:

1. If |realm|.\[[GlobalObject]] does not implement an [=interface=]
that is in |construct|'s [=exposure set=], then return false.
1. If |construct| is [=available in both secure and non-secure contexts=],
then return true.
1. If the [=relevant settings object=] of |realm|.\[[GlobalObject]] is a [=secure context=],
then return true.
1. Otherwise, return false.
</div>

Note: Since it is not possible for the [=relevant settings object=]
for an ECMAScript global object to change whether it is a
Expand Down