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 243c09fae0
commit bc2ef82d9b

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;
},