This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26425 - Drop the default for [Exposed]
Summary: Drop the default for [Exposed]
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 10:18 UTC by Ms2ger
Modified: 2017-12-06 11:10 UTC (History)
8 users (show)

See Also:


Attachments

Description Ms2ger 2014-07-24 10:18:56 UTC
It seems clearer for the reader if all interfaces get an [Exposed] extended attribute rather than inferring Window if there isn't one.
Comment 1 Tobie Langel 2016-09-28 15:30:12 UTC
I agree on principle, but that ship has sailed.

How would we distinguish between an interface that shouldn't be exposed because [exposed] is missing from an interface that should be because it was spec'ed before we made this change?
Comment 2 Boris Zbarsky 2016-09-28 15:43:07 UTC
We'd distinguish by going and editing every single spec accordingly...
Comment 3 Tobie Langel 2016-09-28 15:49:54 UTC
(In reply to Boris Zbarsky from comment #2)
> We'd distinguish by going and editing every single spec accordingly...

Sure. Seems like a lot of work for something that appears to be essentially cosmetics, though. Or am I missing the broader picture?
Comment 4 Anne 2016-09-28 15:53:55 UTC
Yeah, the problem is that specifications don't consider workers, or service workers, etc. Not having a default would require specifications to consider what they're doing, which I think is what we want. (There's also been some confusion from developers in the past as to how interfaces end up being exposed. There being an explicit syntax link would help with that too.)
Comment 5 Tobie Langel 2016-09-28 15:58:55 UTC
OK, that makes sense. We need a strategy to make every spec fix their this though.
Comment 6 Jeffrey Yasskin 2016-09-28 16:36:40 UTC
Making an interface without [Exposed] into a bikeshed and respec error would catch a good fraction of maintained specs.
Comment 7 Boris Zbarsky 2016-09-28 16:39:02 UTC
And once those get updated, we can change browser IDL parsers and file bugs on any remaining specs that this catches....
Comment 8 Tab Atkins Jr. 2016-09-28 21:37:23 UTC
Is there a good doc I can point to somewhere in Bikeshed's error message letting people know how to fix things correctly?  (I'm not willing to add errors where the solution is "ask someone in #whatwg what to do".)
Comment 9 Tobie Langel 2016-09-28 22:14:15 UTC
(In reply to Tab Atkins Jr. from comment #8)
> Is there a good doc I can point to somewhere in Bikeshed's error message
> letting people know how to fix things correctly?  (I'm not willing to add
> errors where the solution is "ask someone in #whatwg what to do".)

I'll add documentation in WebIDL itself once we get to this and will coordinate with you.
Comment 10 Jeffrey Yasskin 2016-09-29 19:33:35 UTC
I've filed https://github.com/w3ctag/design-principles/issues/35 to hold the design advice Tab's looking for.
Comment 11 Tobie Langel 2017-05-17 09:42:58 UTC
See also https://github.com/heycam/webidl/issues/365.
Comment 12 Anne 2017-12-06 11:10:34 UTC
See comment above.