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 22358 - Add a "this is the global" annotation
Summary: Add a "this is the global" annotation
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
Whiteboard: [v1]
Depends on:
Reported: 2013-06-14 03:02 UTC by Boris Zbarsky
Modified: 2014-01-26 16:54 UTC (History)
3 users (show)

See Also:


Description Boris Zbarsky 2013-06-14 03:02:37 UTC
We should have an annotation that goes on the Window interface that implies the following:

1)  ImplicitThis for the interface and all its ancestors and all the things it
    and its ancestors pull in via consequential interfaces.
2)  NamedPropertiesObject.
3)  Attributes, and maybe operations, going on the object itself, not the

and whatever other funk we want out of the global.
Comment 1 Anne 2013-06-14 08:48:10 UTC
Probably more like "this is the document global" as some of those we don't want for workers I think.
Comment 2 Boris Zbarsky 2013-06-14 16:34:52 UTC
We do want the ImplicitThis behavior in workers, I think.  And probably the "put the properties on the object itself" behavior.  And NamedPropertiesObject is ignored if there is no named getter on the object.
Comment 3 Anne 2013-07-11 19:24:15 UTC
Not sure if this is a good idea, but should we combine this with ways of not exposing certain features in certain globals?

Document in XMLHttpRequest, HTMLFormElement in FormData's constructor, etc. I guess I will do those in prose for now.
Comment 4 Cameron McCormack 2014-01-26 16:54:45 UTC
This got done a while ago, here: