On Wed, Apr 30, 2014 at 10:44 PM, Marcos <[email protected]> wrote:
> On April 29, 2014 at 8:36:20 AM, Anne van Kesteren ([email protected]) wrote:
>> 4. It should be exposed in workers.
>
> See: http://heycam.github.io/webidl/#Exposed for the details of how to do
> that. Contains an example.
In a private thread with one of the editors I suggested the following
as replacement for the current API:
enum DNTValues { "unspecified", "0", "1" };
[NoInterfaceObject, Exposed=Window,Worker]
interface NavigatorDNT {
readonly attribute DNTValues doNotTrack;
};
Navigator implements NavigatorDNT
WorkerNavigator implements NavigatorDNT
I think this more closely matches what we want here.
It's probably still not completely ideal as per Peter permission
exposure is ideally asynchronous due to crossing process boundaries,
but I suspect it might be too late to turn this into a promise.
--
http://annevankesteren.nl/