Skip to content

WorkerLocation

Generated from idl/workers.webidl when the site was built at 7aa23e2.

WorkerLocation is an interface in idl/workers.webidl, exposed in Worker. What it does is on MDN; this page says what niso has of it.

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 10
attribute
stringifier readonly attribute USVString href;
int32_t niso_worker_location_get_href(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString origin;
int32_t niso_worker_location_get_origin(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString protocol;
int32_t niso_worker_location_get_protocol(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString host;
int32_t niso_worker_location_get_host(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString hostname;
int32_t niso_worker_location_get_hostname(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString port;
int32_t niso_worker_location_get_port(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString pathname;
int32_t niso_worker_location_get_pathname(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString search;
int32_t niso_worker_location_get_search(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute USVString hash;
int32_t niso_worker_location_get_hash(niso_dom* dom, niso_handle self, niso_str* out);

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.

  • toString (Dedicated workers)