diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 76a8583abc51..7fb3a07bd2ec 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -2297,7 +2297,11 @@ bool nsContentUtils::ShouldResistFingerprinting(nsIChannel* aChannel) { /* static */ bool nsContentUtils::UseStandinsForNativeColors() { - return ShouldResistFingerprinting() || + return ShouldResistFingerprinting( + "we want to have consistent colors across the browser if RFP is " + "enabled, so we check the global preference" + "not excluding chrome browsers or webpages, so we call the legacy " + "RFP function to prevent that") || StaticPrefs::ui_use_standins_for_native_colors(); } diff --git a/xpfe/appshell/AppWindow.cpp b/xpfe/appshell/AppWindow.cpp index 0caa36ea69dc..d325b842ca4a 100644 --- a/xpfe/appshell/AppWindow.cpp +++ b/xpfe/appshell/AppWindow.cpp @@ -2630,7 +2630,9 @@ void AppWindow::SizeShell() { // If we're using fingerprint resistance, we're going to resize the window // once we have primary content. - if (nsContentUtils::ShouldResistFingerprinting() && + if (nsContentUtils::ShouldResistFingerprinting( + "if RFP is enabled we want to round the dimensions of the new" + "new pop up window regardless of their origin") && windowType.EqualsLiteral("navigator:browser")) { // Once we've got primary content, force dimensions. if (mPrimaryContentShell || mPrimaryBrowserParent) {