From 202e78b731776c3a102ca2f465ed3864b27effd3 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 24 Dec 2018 05:06:54 +0100 Subject: Add performance warnings to Deprecated module. Adds a dedicated handler for performance warnings to be logged to consoles if known performance-impacting methods are called. Search service init is changed from a deprecation warning to a performance warning for synchronous init. This also re-enables the warning for the Basilisk & Co. search service initialization which was previously removed in [a930a79] See also the discussion on #916. --- modules/libpref/init/all.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/libpref') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 43d4b093c..f6a993962 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -956,6 +956,9 @@ pref("toolkit.asyncshutdown.log", false); // Enable deprecation warnings. pref("devtools.errorconsole.deprecation_warnings", true); +// Enable performance warnings. +pref("devtools.errorconsole.performance_warnings", true); + // Disable debugging chrome pref("devtools.chrome.enabled", false); -- cgit v1.2.3