From 8945130306b77b191fffc4441eaf797c7d1802ed Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 9 Dec 2021 08:09:51 +0000 Subject: Disable reload flood guard console reporting for release branch. 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. --- docshell/base/nsDocShell.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3