summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-12-09 08:09:51 +0000
committerMoonchild <moonchild@palemoon.org>2021-12-09 08:09:51 +0000
commit8945130306b77b191fffc4441eaf797c7d1802ed (patch)
tree38a994531b29cc9eabec0d1f5668e6f6cda6bc39
parentd1b5636c418eac4fc4768621cd45938d7fbd3d53 (diff)
downloaduxp-RC_20211209.tar.gz
Disable reload flood guard console reporting for release branch.RELBASE_20211214RC_20211209
Because we're not updating language packs this release, we have to disable the reporting portion of the reload flood guard to prevent errors. Functionality of the guard is otherwise the same.
-rw-r--r--docshell/base/nsDocShell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index 7e3508f2f2..d2e1af36b3 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -5383,11 +5383,13 @@ nsDocShell::Reload(uint32_t aReloadFlags)
// Do this only if not yet marked reported so we only report it once per
// flood interval.
if (!mReloadFloodGuardReported) {
+#if 0
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag,
NS_LITERAL_CSTRING("Reload"),
GetDocument(),
nsContentUtils::eDOM_PROPERTIES,
"ReloadFloodingPrevented");
+#endif
mReloadFloodGuardReported = true;
}
return NS_OK;