I've removed the mention of PrimaryGlobal from
https://developer.mozilla.org/en-US/docs/MDN/Contribute/Howto/Write_an_API_reference/Information_contained_in_a_WebIDL_file.
It was only a small mention.

I also removed the separate mention of the default value:

"If no annotation is available, the default value is Window."

Chris Mills
MDN content lead & writers' team manager
Mozilla Developer Network <https://developer.mozilla.org/en-US/>
@chrisdavidmills <https://twitter.com/chrisdavidmills>


On Fri, Sep 27, 2019 at 8:10 PM Boris Zbarsky <bzbar...@mit.edu> wrote:

> Starting today (on autoland,coming to m-c soon), there is no more
> [PrimaryGlobal] extended attribute on interfaces in our Web IDL, and
> therefore all interfaces need an explicit [Exposed] annotation saying
> where they are exposed (e.g. [Exposed=Window] for the case that used to
> not have any annotation and default-exposed on mainthread).
>
> This aligns with upstream spec changes.
>
> If someone forgets to add [Exposed] on your interface, the parser will
> helpfully complain that there are globals the interface could be exposed
> on, but it's not exposed on any of them.
>
> Just copy/pasting IDL from specs should generally work; I believe most,
> if not all, specs updated to this upstream change a while ago.
>
> -Boris
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to