[heycam/webidl] ES bindings for constants on Globals (#528)

The [spec says](https://heycam.github.io/webidl/#es-constants):

> The location of the property is determined as follows:
> 1. If the interface was declared with the [Global] extended attribute, then the property exists on the single object that implements the interface.
> 2. Otherwise, if the interface has an interface prototype object, then the property exists on it.

In practice, that's not what's implemented by browsers, however.

The only constants I'm aware of on globals are: `Window.TEMPORARY` and `Window.PERSISTENT` (thanks, @TimothyGu, for the heads up). And that's only exposed in Chrome. Maybe there are others?

In Chrome, the property is exposed on the interface prototype object, and so there is no special casing even though it's a global.

Proposed resolution here is simply to remove the special casing for [Global].



-- 
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/528

Received on Tuesday, 27 February 2018 18:46:01 UTC