RESOLVED FIXED Bug 238170
Fetching a Blob URL with an unbounded Range header do not generate a Content-Range response header
https://bugs.webkit.org/show_bug.cgi?id=238170
Summary Fetching a Blob URL with an unbounded Range header do not generate a Content-...
Jer Noble
Reported 2022-03-21 17:03:43 PDT
Fetching a Blob URL with an unbounded Range header do not generate a Content-Range response header
Attachments
Patch (6.95 KB, patch)
2022-03-21 17:15 PDT, Jer Noble
ews-feeder: commit-queue-
Jer Noble
Comment 1 2022-03-21 17:15:09 PDT
Jean-Yves Avenard [:jya]
Comment 2 2022-03-21 23:54:21 PDT
Comment on attachment 455304 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455304&action=review > Source/WebKit/NetworkProcess/NetworkDataTaskBlob.cpp:279 > + } seems to be a lot of duplicated code around here.
EWS
Comment 3 2022-03-22 08:47:16 PDT
Committed r291622 (248715@main): <https://commits.webkit.org/248715@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455304 [details].
Radar WebKit Bug Importer
Comment 4 2022-03-22 08:48:15 PDT
Darin Adler
Comment 5 2022-03-22 09:42:01 PDT
Comment on attachment 455304 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455304&action=review > Source/WebKit/NetworkProcess/NetworkDataTaskBlob.cpp:276 > + rangeEnd = m_totalSize - 1; Why is -1 correct?
Jer Noble
Comment 6 2022-03-22 16:11:30 PDT
(In reply to Darin Adler from comment #5) > Comment on attachment 455304 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=455304&action=review > > > Source/WebKit/NetworkProcess/NetworkDataTaskBlob.cpp:276 > > + rangeEnd = m_totalSize - 1; > > Why is -1 correct? Because a Content-Range header's "range end" is inclusive. (Which I agree is weird from a C++ POV.)
Jer Noble
Comment 7 2022-03-24 10:21:23 PDT
*** Bug 238113 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.