Bug 1017654 - Disable self-xss warning if chrome debugging is enabled. r=jwalker

This commit is contained in:
Manish Goregaokar 2014-05-31 14:10:00 -04:00
parent 7e3e2d8456
commit 40330dab93

View File

@ -542,6 +542,9 @@ let WebConsoleUtils = {
get usageCount() {
if (WebConsoleUtils._usageCount < CONSOLE_ENTRY_THRESHOLD) {
WebConsoleUtils._usageCount = Services.prefs.getIntPref("devtools.selfxss.count")
if (Services.prefs.getBoolPref("devtools.chrome.enabled")) {
WebConsoleUtils.usageCount = CONSOLE_ENTRY_THRESHOLD;
}
}
return WebConsoleUtils._usageCount;
},