From 8ee9e3bc52cb77ff4b4e8f21d378ad200c3231a4 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 3 Jul 2024 16:59:39 +0200 Subject: [PATCH] Issue #2542 - Part 2b: Fix typo in pref check --- dom/security/SecFetch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }