Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set web worker startup options with messages instead of query strings (…
…#1574) ## Motivation for the change, related issues When the web worker is loaded from browser storage it loses the query string context we use to send startup options like WP and PHP version. To enable offline support, this PR changes how the worker obtains startup options to ensure it works when cached. ## Implementation details Instead of fetching startup options from the query string, `spawnPHPWorkerThread` will post startup options as a message to the worker. When `worker-utils` loads it will await the `startup-options` message and continue once it receives the data. ## Testing Instructions (or ideally a Blueprint) - Ensure all tests pass ~~@brandonpayton @adamziel I'm not sure about this solution. It works, but I'm not happy with it. How does it look to you?~~
- Loading branch information