summaryrefslogtreecommitdiff
path: root/dom/xml/XMLDocument.h
diff options
context:
space:
mode:
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