Bug 1613912 Comment 5 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Andrew, thanks for the detailed comment.

If I understand correctly, the solution in comment 4 is providing fetch() passes request/response through a new IPC actor PFetch (managed by PBackground), and creates a nsHttpChannel in the parent process through FetchService. And thanks for FetchService, we can also load the the worker's initial script in the parent process and save in ScriptCache, then we can spawn the worker to the correct process. 

It seems to be doable. I will investagate if there are any problems about global lives in another process.

Another problem is https://bugzilla.mozilla.org/show_bug.cgi?id=1351231#c1. I am not familiar with how devtool communicates with workers, could you describe what we might meet with PFetch and FetchService?

Back to Bug 1613912 Comment 5