Merge WorkerLocation/WorkerNavigator into Location/Navigator? #6390
Labels
impacts documentation
Used by documentation communities, such as MDN, to track changes that impact documentation
normative change
WorkerLocation
andWorkerNavigator
presumably predate the use ofExposed
in Web IDL. MergingNavigator
andWorkerNavigator
was briefly discussed in #216.The resulting Web IDL would be something like this:
[Exposed=Window]
is already used on some of the mixins that are included in bothNavigator
andWorkerNavigator
, such as https://html.spec.whatwg.org/multipage/system-state.html#navigatorid.However, doing so is not without risk because code could access
self.WorkerNavigator.prototype
, or perhaps even depend onself.Navigator
not being exposed as a way to detect workers. I did some quick searching in httparchive for "WorkerLocation" and "WorkerNavigator" and got few enough matches that maybe it would be fine.I'm not sure it's worth the effort to make this change, but am filing the issue since I can't find any existing issue about just this.
The text was updated successfully, but these errors were encountered: