Re: Web IDL interfaces now require explicit [Exposed] annotations

2019-10-01 Thread Boris Zbarsky

On 10/1/19 11:39 AM, Eric Shepherd (Sheppy) wrote:

Is the page “WebIDL bindings” up to date as well?


That page describes gecko-specific aspects of IDL, so usually does not 
need to be updated for spec changes.


That said, it looks like it was never updated for 
https://bugzilla.mozilla.org/show_bug.cgi?id=1489301 (removal of 
[Exposed=System]).  I'll fix that now.


-Boris
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Web IDL interfaces now require explicit [Exposed] annotations

2019-10-01 Thread Christopher Mills
No. I didn't even know about that page ;-|

Chris Mills
MDN content lead & writers' team manager
Mozilla Developer Network 
@chrisdavidmills 


On Tue, Oct 1, 2019 at 4:39 PM Eric Shepherd (Sheppy) 
wrote:

> Is the page “WebIDL bindings” up to date as well? I often find it useful
> too.
>
> https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings
>
> On October 1, 2019 at 5:58:36 AM, Christopher Mills (cmi...@mozilla.com)
> wrote:
>
> 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."
>
>
> Eric Shepherd
> Senior Technical Writer
> MDN Web Docs 
> Blog: https://www.bitstampede.com/
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Web IDL interfaces now require explicit [Exposed] annotations

2019-10-01 Thread Eric Shepherd (Sheppy)
Is the page “WebIDL bindings” up to date as well? I often find it useful
too.

https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings

On October 1, 2019 at 5:58:36 AM, Christopher Mills (cmi...@mozilla.com)
wrote:

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."


Eric Shepherd
Senior Technical Writer
MDN Web Docs 
Blog: https://www.bitstampede.com/
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Web IDL interfaces now require explicit [Exposed] annotations

2019-10-01 Thread Boris Zbarsky

On 10/1/19 5:58 AM, Christopher Mills wrote:

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:


Thank you!

-Boris
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Web IDL interfaces now require explicit [Exposed] annotations

2019-10-01 Thread Christopher Mills
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 
@chrisdavidmills 


On Fri, Sep 27, 2019 at 8:10 PM Boris Zbarsky  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


Web IDL interfaces now require explicit [Exposed] annotations

2019-09-27 Thread Boris Zbarsky
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