Refactor and improve the code for handling blob URL range requests
Categories
(Core :: DOM: File, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: twisniewski, Assigned: twisniewski)
References
Details
Attachments
(3 files)
In bug 1784880 we added support for honoring range requests on blob URLs being fetched or XMLHttpRequested. The code could use some improvements:
-
give nsBaseChannel a simple XPCOM interface that we can query, so we don't have to rely on static_casting to nsBaseChannel (which is of very error prone and results in having to remember to add extranneous code to confirm that we actually are dealing with a blob URL, otherwise we can easily cast the wrong channel class and mess up its requests).
-
move the ContentRange class and support code into its own file, and have the new XPCOM class give access to the content-range support. This will allow us to eventually re-use this functionality for other types of nsBaseChannel URLs, such as files (which may help with bug 1378228).
-
this should also let us start to move the code we added in bug 1845006 for handling standards-compliant content-type headers for Data URLs into the same new interface, for similar benefits.
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•9 months ago
|
||
Updated•9 months ago
|
Assignee | ||
Comment 3•9 months ago
|
||
Assignee | ||
Comment 4•9 months ago
|
||
Comment 6•9 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/553b59b0c2a5
https://hg.mozilla.org/mozilla-central/rev/e2dd51dd3691
https://hg.mozilla.org/mozilla-central/rev/6f4963be624f
Description
•