Open
Bug 1802102
Opened 2 years ago
Updated 2 years ago
Support download requests in worker through PFetch
Categories
(Core :: DOM: Workers, enhancement, P2)
Core
DOM: Workers
Tracking
()
NEW
People
(Reporter: edenchuang, Assigned: edenchuang)
Details
We implement the PFetch in https://bugzilla.mozilla.org/show_bug.cgi?id=1351231 to support fetches in a worker to be off the main thread in the content process.
When the request is a download request, the download code would listen to the notification from the created channel in the content process, and checks the channel with the corresponding interface. However, once the PFetch is used, the channel would not be created in the content process anymore, and the download would not be completed since there is no notification from the expected channel.
This bug is used to track the implementation for download through PFetch.
We probably have the following options.
- Fake the channel interface on PFetch
The benefit is download code can keep the original logic. But the faking channel could have some limitations since it would not be on the main thread. - Using another way to notify the download code.
This would make download code logic can not be shared between the worker and the window.
Assignee | ||
Updated•2 years ago
|
Assignee: nobody → echuang
Severity: -- → S3
Priority: -- → P2
You need to log in
before you can comment on or make changes to this bug.
Description
•