mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017654 - Disable self-xss warning if chrome debugging is enabled. r=jwalker
This commit is contained in:
parent
7e3e2d8456
commit
40330dab93
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user