From 4dace76a044d37c40b5081dbb2fdd483f1d9e066 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 25 Apr 2022 13:52:17 +0000 Subject: [PATCH] Issue #1885 - Follow-up: Update error message if invalid rootMargin specified. --- dom/base/DOMIntersectionObserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/DOMIntersectionObserver.cpp b/dom/base/DOMIntersectionObserver.cpp index fb6315cc42..7ee1a4c938 100644 --- a/dom/base/DOMIntersectionObserver.cpp +++ b/dom/base/DOMIntersectionObserver.cpp @@ -84,7 +84,7 @@ DOMIntersectionObserver::Constructor(const mozilla::dom::GlobalObject& aGlobal, if (!observer->SetRootMargin(aOptions.mRootMargin)) { aRv.ThrowDOMException(NS_ERROR_DOM_SYNTAX_ERR, - NS_LITERAL_CSTRING("rootMargin must be specified in pixels or percent.")); + NS_LITERAL_CSTRING("rootMargin must be a valid absolute or percent length.")); return nullptr; }