summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-24 05:06:54 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-24 05:06:54 +0100
commit202e78b731776c3a102ca2f465ed3864b27effd3 (patch)
treea122aa277f3a35df7b06216c1f82054c215339b4 /modules
parent3cf7e874fecf940ffeec00bafd3cf96d5c1b2a46 (diff)
downloadUXP-202e78b731776c3a102ca2f465ed3864b27effd3.tar
UXP-202e78b731776c3a102ca2f465ed3864b27effd3.tar.gz
UXP-202e78b731776c3a102ca2f465ed3864b27effd3.tar.lz
UXP-202e78b731776c3a102ca2f465ed3864b27effd3.tar.xz
UXP-202e78b731776c3a102ca2f465ed3864b27effd3.zip
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/libpref/init/all.js3
1 files changed, 3 insertions, 0 deletions
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);