Vestiges of [Supplemental]

Dedicated workers and shared workers have a global scope called 
WorkerGlobalScope. However, dedicated workers also implement 
DedicatedWorkerGlobalScope; shared workers also implement 
SharedWorkerGlobalScope. In the prose, to avoid having really awkward 
phrasing, I refer to these three interfaces by those names; for example, I 
talk about the global scope being a SharedWorkerGlobalScope object, or 
creating a new SharedWorkerGlobalScope object.

Currently I do this by having DedicatedWorkerGlobalScope and 
SharedWorkerGlobalScope be marked [Supplemental, NoInterfaceObject] and 
having them inherit from WorkerGlobalScope, so that they appear to just be 
simple WorkerGlobalScope objects to scripts.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 20 July 2011 22:04:10 UTC