зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1763281 allow one byte 206 Partial Content responses r=media-playback-reviewers,padenot
These were disallowed on initial implementation. https://hg.mozilla.org/mozilla-central/rev/6df63191884b8631984d92bef4b937ab084042cd#l1.166 https://httpwg.org/specs/rfc7233.html#header.content-range "A Content-Range field value is invalid if it contains a byte-range-resp that has a last-byte-pos value less than its first-byte-pos value". The aRangeEnd < aRangeTotal test correctly understands that aRangeEnd is an inclusive index. [range responses from multiple origins (cross-origin first)] fails because Firefox reuses the media resource loaded in [range responses from single origin (same-origin)] for subsequent resources with the same URL, without any re-fetch (bug 1129121). Depends on D143119 Differential Revision: https://phabricator.services.mozilla.com/D143120
This commit is contained in:
Родитель
eb45fac6ab
Коммит
733cea14b9
|
@ -132,7 +132,7 @@ ParseContentRangeHeaderString(const nsAutoCString& aRangeStr) {
|
|||
if (NS_FAILED(rv)) {
|
||||
return Err(rv);
|
||||
}
|
||||
if (rangeStart >= rangeEnd) {
|
||||
if (rangeStart > rangeEnd) {
|
||||
return Err(NS_ERROR_ILLEGAL_VALUE);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[fetch-canvas-tainting-video-with-range-request.https.html]
|
||||
[range responses from single origin (same-origin)]
|
||||
[range responses from multiple origins (cross-origin first)]
|
||||
expected: FAIL
|
||||
|
||||
[range responses from single origin with both opaque and non-opaque responses]
|
||||
|
|
Загрузка…
Ссылка в новой задаче