diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 9503db5f249b5..0512d6563436a 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -127,6 +127,7 @@ #include "nsSize.h" #include "nsThreadUtils.h" #include "nsURIHashKey.h" +#include "nsURLHelper.h" #include "nsVideoFrame.h" #include "ReferrerInfo.h" #include "TimeUnits.h" @@ -1305,6 +1306,10 @@ HTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest* aRequest) { Unused << hc->GetResponseStatus(&responseStatus); nsAutoCString statusText; Unused << hc->GetResponseStatusText(statusText); + // we need status text for resist fingerprinting mode's message allowlist + if (statusText.IsEmpty()) { + net_GetDefaultStatusTextForCode(responseStatus, statusText); + } element->NotifyLoadError( nsPrintfCString("%u: %s", responseStatus, statusText.get())); diff --git a/dom/xhr/tests/mochitest.ini b/dom/xhr/tests/mochitest.ini index ed59ac67188ff..e0bbd3ac86fbd 100644 --- a/dom/xhr/tests/mochitest.ini +++ b/dom/xhr/tests/mochitest.ini @@ -42,6 +42,7 @@ support-files = xhr_worker.js xhr2_worker.js xhrAbort_worker.js + test_XHR.js test_worker_xhr_parameters.js test_worker_xhr_system.js worker_xhr_cors_redirect.js @@ -114,6 +115,7 @@ skip-if = [test_worker_xhrAbort.html] skip-if = (os == "win") || (os == "mac") [test_XHR.html] +skip-if = http2 [test_xhr_abort_after_load.html] [test_XHR_anon.html] skip-if = @@ -124,6 +126,8 @@ skip-if = skip-if = http3 http2 +[test_XHR_http2.html] +skip-if = !http2 [test_XHR_onuploadprogress.html] [test_xhr_overridemimetype_throws_on_invalid_state.html] [test_XHR_parameters.html] diff --git a/dom/xhr/tests/test_XHR.html b/dom/xhr/tests/test_XHR.html index 161efe455e342..b8925750f62e7 100644 --- a/dom/xhr/tests/test_XHR.html +++ b/dom/xhr/tests/test_XHR.html @@ -11,373 +11,7 @@
- +