From 6423c6c23da3489224050660749f23430f3b4eae Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Tue, 3 May 2022 22:24:25 +0000 Subject: [PATCH] Bug 1763281 serve movie_5.ogv with Content-Type:video/ogg r=media-playback-reviewers,padenot Firefox uses only the first of Partial Content responses to sniff the type, but falls back to the Content-Type because the initial response is so short. https://bugzilla.mozilla.org/show_bug.cgi?id=1763277 Firefox behavior weakly arguably conforms with the permitted abort of "read the resource header" when "a reasonable amount of time has elapsed, as determined by the user agent", https://mimesniff.spec.whatwg.org/#read-the-resource-header but the purpose of the tests is not to test sniffing, https://github.com/web-platform-tests/wpt/commit/67593065a83156851279d1751fc865131e8dbff9#diff-4cc71e3c53ed088f2f437b1c43d9bec445827f10a4f6dce0615eb0f4e7823e3dR37 so let's keep the results independent of this edge case. Differential Revision: https://phabricator.services.mozilla.com/D143119 --- .../service-workers/service-worker/resources/fetch-access-control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/web-platform/tests/service-workers/service-worker/resources/fetch-access-control.py b/testing/web-platform/tests/service-workers/service-worker/resources/fetch-access-control.py index a5f558d3d590..446af87b2497 100644 --- a/testing/web-platform/tests/service-workers/service-worker/resources/fetch-access-control.py +++ b/testing/web-platform/tests/service-workers/service-worker/resources/fetch-access-control.py @@ -35,7 +35,7 @@ def main(request, response): return headers, body if b"VIDEO" in request.GET: - headers.append((b"Content-Type", b"video/webm")) + headers.append((b"Content-Type", b"video/ogg")) body = open(os.path.join(request.doc_root, u"media", u"movie_5.ogv"), "rb").read() length = len(body) # If "PartialContent" is specified, the requestor wants to test range -- 2.11.4.GIT