Re: [heycam/webidl] The [SecureContext] text is unclear on exposure for interfaces (#119)

> One other thing that's unclear to me is what the exposure of partial interface members is if [SecureContext] is specified on the non-partial interface but not on the partial interface.

http://heycam.github.io/webidl/#SecureContext says:

> Otherwise, if the [SecureContext] extended attribute does not appear on a construct, then whether it is available only in secure contexts depends on the type of construct:
...
> partial interface
>    The partial interface is available only in secure contexts if and only if the original interface definition is.

So if the non-partial interface is [SecureContext], then so are all its partial interfaces, whether they claim to be [SecureContext] or not.  We could make this explicit, sure, by making it a parse failure if an interface is annotated [SecureContext] but one of its partial interfaces is not...

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/119#issuecomment-218604074

Received on Wednesday, 11 May 2016 22:04:02 UTC