summaryrefslogtreecommitdiff
path: root/dom/xml/XMLDocument.h
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2017-04-29 00:20:27 +0200
committerPale Moon <git-repo@palemoon.org>2017-04-29 00:20:27 +0200
commitd8cde9b05130c1dc07264eab1ba20ba9f78c556a (patch)
tree425c385de593b63d200ea42f00ef519cb330c6d0 /dom/xml/XMLDocument.h
parent9f8e866fffee2d365c4d857098b00179ad873cbb (diff)
downloadpalemoon-gre-d8cde9b05130c1dc07264eab1ba20ba9f78c556a.tar.gz
Suppress spurious console errors for XHR response codes 201, 202, 204, 205 and 304.
Parse errors for XML data are already handled in 4d8f9a9add1805a5cb3b7fd1cc1ff8dd4b020fe4 -- this is a follow-up to suppress unnecessary console errors.
Diffstat (limited to 'dom/xml/XMLDocument.h')
-rw-r--r--dom/xml/XMLDocument.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/xml/XMLDocument.h b/dom/xml/XMLDocument.h
index 6eaa32a4b..560aad1f6 100644
--- a/dom/xml/XMLDocument.h
+++ b/dom/xml/XMLDocument.h
@@ -33,6 +33,9 @@ public:
virtual void SetSuppressParserErrorElement(bool aSuppress) override;
virtual bool SuppressParserErrorElement() override;
+ virtual void SetSuppressParserErrorConsoleMessages(bool aSuppress) override;
+ virtual bool SuppressParserErrorConsoleMessages() override;
+
virtual nsresult StartDocumentLoad(const char* aCommand, nsIChannel* channel,
nsILoadGroup* aLoadGroup,
nsISupports* aContainer,
@@ -93,6 +96,9 @@ protected:
// If true, do not output <parsererror> elements. Per spec, XMLHttpRequest
// shouldn't output them, whereas DOMParser/others should (see bug 918703).
bool mSuppressParserErrorElement;
+
+ // If true, do not log parsing errors to the web console (see bug 884693).
+ bool mSuppressParserErrorConsoleMessages;
};
} // namespace dom