summaryrefslogtreecommitdiff
path: root/modules/libpref
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
commit92ae0b3a845016106d87f6d0857af3fd325424dc (patch)
treea122aa277f3a35df7b06216c1f82054c215339b4 /modules/libpref
parent8a20b536aeab19d94755410abed06819ab5e67db (diff)
downloaduxp-92ae0b3a845016106d87f6d0857af3fd325424dc.tar.gz
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/libpref')
-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 43d4b093ce..f6a9939624 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);