From dc41e899afa6412d7db02c948067217edcf48bbd Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Wed, 1 May 2019 21:08:54 +0000 Subject: [PATCH] Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - dom.enable_frame_timing, r=Ehsan Differential Revision: https://phabricator.services.mozilla.com/D29509 --HG-- extra : moz-landing-system : lando --- dom/base/nsContentUtils.cpp | 9 --------- dom/base/nsContentUtils.h | 6 ------ 2 files changed, 15 deletions(-) diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index f6f3637289d0..c95adecce8d9 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -310,7 +310,6 @@ nsString* nsContentUtils::sAltText = nullptr; nsString* nsContentUtils::sModifierSeparator = nullptr; bool nsContentUtils::sInitialized = false; -bool nsContentUtils::sIsFrameTimingPrefEnabled = false; bool nsContentUtils::sIsFormAutofillAutocompleteEnabled = false; bool nsContentUtils::sSendPerformanceTimingNotifications = false; bool nsContentUtils::sUseActivityCursor = false; @@ -625,9 +624,6 @@ nsresult nsContentUtils::Init() { Preferences::AddBoolVarCache(&sAllowXULXBL_for_file, "dom.allow_XUL_XBL_for_file"); - Preferences::AddBoolVarCache(&sIsFrameTimingPrefEnabled, - "dom.enable_frame_timing", false); - Preferences::AddBoolVarCache(&sIsFormAutofillAutocompleteEnabled, "dom.forms.autocomplete.formautofill", false); @@ -6665,11 +6661,6 @@ bool nsContentUtils::IsCutCopyAllowed(nsIPrincipal* aSubjectPrincipal) { return PrincipalHasPermission(aSubjectPrincipal, nsGkAtoms::clipboardWrite); } -/* static */ -bool nsContentUtils::IsFrameTimingEnabled() { - return sIsFrameTimingPrefEnabled; -} - /* static */ bool nsContentUtils::HaveEqualPrincipals(Document* aDoc1, Document* aDoc2) { if (!aDoc1 || !aDoc2) { diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h index 6e14d9e2b184..8d8cfb9deb01 100644 --- a/dom/base/nsContentUtils.h +++ b/dom/base/nsContentUtils.h @@ -2347,11 +2347,6 @@ class nsContentUtils { return sSendPerformanceTimingNotifications; } - /* - * Returns true if the frame timing APIs are enabled. - */ - static bool IsFrameTimingEnabled(); - /* * Returns true if the browser should attempt to prevent the given caller type * from collecting distinctive information about the browser that could @@ -3466,7 +3461,6 @@ class nsContentUtils { static bool sIsHandlingKeyBoardEvent; static bool sAllowXULXBL_for_file; static uint32_t sHandlingInputTimeout; - static bool sIsFrameTimingPrefEnabled; static bool sIsFormAutofillAutocompleteEnabled; static bool sSendPerformanceTimingNotifications; static bool sUseActivityCursor;