Open Bug 1812042 Opened 1 year ago Updated 26 days ago

Resolve the race caused by ObjectURL/BlobURL revoke

Categories

(Core :: DOM: Workers, defect, P2)

defect

Tracking

()

People

(Reporter: edenchuang, Assigned: edenchuang)

References

Details

https://bugzilla.mozilla.org/show_bug.cgi?id=1810828#c7

This is the bug for tracking the issue caused by ObjectURL/BlobURL revoke when fetching.

Assignee: nobody → echuang
Blocks: 1812039
Severity: -- → S3
Priority: -- → P2
No longer blocks: 1812039
See Also: → 1812039

This bug is not related PFetch implementation but related to ObjectURL.revoke() implementation.

ObjectURL.revoke() should not impact any usage of ObjectURL before calling revoke().

For example, using the ObjectURL to create a Request, then calling ObjectURL.revoke().
The request should still be valid for accessing the corresponding ObjectURL data.

Another example is using ObjectURL to fetch() directly, then calling ObjectURL.revoke().
The request created by fetch() internal should be able to access ObjectURL data.

In our implementation, to not transfer big blob data too often between processes, we only use ObjectURL's nsIURI to create a Request or fetch(), and then try to get data in the parent process if needed. However, it causes the problem when fetch()/Request for fetch() arrives the parent process later than ObjectURL.revoke().

You need to log in before you can comment on or make changes to this bug.