diff options
author | Moonchild <moonchild@palemoon.org> | 2021-12-09 08:09:51 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-03 01:04:46 +0200 |
commit | 693b2a0d15d3c13667b0e95126e1d7d22e6a9d8a (patch) | |
tree | 9d451ad66e9bd241dc0ad25a0c92c43be4c7cf00 | |
parent | fd59fd55a242f913fa828bc4e3477d47546d6bb4 (diff) | |
download | uxp-693b2a0d15d3c13667b0e95126e1d7d22e6a9d8a.tar.gz |
Disable reload flood guard console reporting for release branch.RELBASE_20211214-UXP
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.cpp | 2 |
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; |