A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

[Proposal] Give Web Workers access to history.state

bahrus
2019-08-02

Web Workers have access to IndexedDB. This seems useful for state management solutions that don’t want to block the UI thread

Unfortunately, web workers can’t access the history object, according to the first link above.

This proposal is to give web workers access to history, for similar reasons.

MattiasBuelens
2019-08-06

The history API is tied to a specific web page context. For the same reasons that workers cannot access the DOM or the page’s location, I don’t think workers should be able to inspect or manipulate the navigation stack of a page from another thread.

bahrus
2019-08-07

That makes sense, thanks for the explanation.