DedicatedWorkerGlobalScope
Generated from idl/workers.webidl when the site was built at 7aa23e2.
DedicatedWorkerGlobalScope is an interface in idl/workers.webidl, inheriting WorkerGlobalScope, exposed in DedicatedWorker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| Dedicated workers | Widely available | Partial 85% 410 of 477 subtests pass | 3 |
| postMessage | Widely available | Partial 70% 309 of 441 subtests pass | 1 |
| messageerror | Widely available | Partial 75% 3 of 4 subtests pass | 1 |
Members
Section titled “Members”readonly attribute DOMString name;int32_t niso_dedicated_worker_global_scope_get_name(niso_dom* dom, niso_handle self, niso_str* out);send()
Section titled “send()”[NisoInternal] undefined send(ArrayBuffer message, sequence<MessagePort> transfer);int32_t niso_dedicated_worker_global_scope_send(niso_dom* dom, niso_handle self, const uint8_t* message, size_t message_len, const niso_handle* transfer, size_t transfer_len);close()
Section titled “close()”undefined close();int32_t niso_dedicated_worker_global_scope_close(niso_dom* dom, niso_handle self);onmessage
Section titled “onmessage”attribute EventHandler onmessage;int32_t niso_dedicated_worker_global_scope_get_onmessage(niso_dom* dom, niso_handle self, void** out);int32_t niso_dedicated_worker_global_scope_set_onmessage(niso_dom* dom, niso_handle self, niso_event_handler_non_null_fn value_fn, void* value_userdata, niso_drop_fn value_drop);onmessageerror
Section titled “onmessageerror”attribute EventHandler onmessageerror;int32_t niso_dedicated_worker_global_scope_get_onmessageerror(niso_dom* dom, niso_handle self, void** out);int32_t niso_dedicated_worker_global_scope_set_onmessageerror(niso_dom* dom, niso_handle self, niso_event_handler_non_null_fn value_fn, void* value_userdata, niso_drop_fn value_drop);script()
Section titled “script()”[NisoInternal] sequence<DOMString> script();int32_t niso_dedicated_worker_global_scope_script(niso_dom* dom, niso_handle self, niso_strs* out);The worker’s script, which the core fetched before the binding started: its type (classic or module), its URL and its source, then “true” or “false” for whether the worker is a secure context: whether the realm that started it was one when it did.
scriptFailed()
Section titled “scriptFailed()”[NisoInternal] undefined scriptFailed();int32_t niso_dedicated_worker_global_scope_script_failed(niso_dom* dom, niso_handle self);The script could not be parsed: the Worker object gets an error event and the worker closes.
Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
cancelAnimationFrame(requestAnimationFrame() in workers)postMessage(postMessage)requestAnimationFrame(requestAnimationFrame() in workers)rtctransform event(WebRTC encoded transform)