diff options
author | Moonchild <moonchild@palemoon.org> | 2022-04-25 13:52:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-25 13:52:17 +0000 |
commit | 72ff18e58eb1411029116faaa5c73372e4df3cd1 (patch) | |
tree | bb3642071ad730dbac2c08fb3a2239c5f110e11f | |
parent | a0bdc21cf57e85c370a656827ef6a28f624e63df (diff) | |
download | uxp-72ff18e58eb1411029116faaa5c73372e4df3cd1.tar.gz |
Issue #1885 - Follow-up: Update error message if invalid rootMargin specified.
-rw-r--r-- | dom/base/DOMIntersectionObserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |