diff --git a/dom/security/SecFetch.cpp b/dom/security/SecFetch.cpp index 67a9fce29c..698f2d79a2 100644 --- a/dom/security/SecFetch.cpp +++ b/dom/security/SecFetch.cpp @@ -282,7 +282,7 @@ void SecFetch::AddSecFetchUser(nsIHttpChannel* aHTTPChannel) { void SecFetch::AddSecFetchHeader(nsIHttpChannel* aHTTPChannel) { // if sec-fetch-* is prefed off, then there is nothing to do - if (Preferences::GetBool("network.http.secfetch.enabled",false)) { + if (!Preferences::GetBool("network.http.secfetch.enabled",false)) { return; }