1409 | | The `[GlobalContext=WindowOnly|WorkerOnly|WindowAndWorker]` is a WebKit-specific extended attribute that may only be used on interfaces that do not have the `[NoInterfaceObject]` attribute. Three values are allowed for this attribute: |
1410 | | * `WindowOnly`: A corresponding attribute (global constructor) will be automatically added on the `Window` interface (default if the extended attribute is omitted). |
1411 | | * `WorkerOnly`: A corresponding attribute (global constructor) will be automatically added on the `WorkerContext` interface. |
1412 | | * `WindowAndWorker`: A corresponding attribute (global constructor) will be automatically added on both the `Window` and the `WorkerContext` interfaces. |
| 1409 | `[GlobalContext=*]` is a WebKit-specific extended attribute that may only be used on interfaces that do not have the `[NoInterfaceObject]` attribute. The following values are allowed for this attribute: |
| 1410 | * `DOMWindow`: A corresponding attribute (global constructor) will be automatically added on the `DOMWindow` interface (default if the extended attribute is omitted). |
| 1411 | * `WorkerGlobalScope`: A corresponding attribute (global constructor) will be automatically added on the `WorkerGlobalScope` interface. |
| 1412 | * `SharedWorkerGlobalScope`: A corresponding attribute (global constructor) will be automatically added on the `SharedWorkerGlobalScope` interface. |
| 1413 | * `DedicatedWorkerGlobalScope`: A corresponding attribute (global constructor) will be automatically added on the `DedicatedWorkerGlobalScope` interface. |
| 1414 | |
| 1415 | It is possible to have the global constructor generated on several interfaces by specifying several interface names and separating them with a '&', for e.g. `[GlobalContext=DOMWindow&WorkerGlobalScope]`. |