diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-25 18:28:01 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-25 18:28:01 -0500 |
commit | 2af0aa91e0ed0e6a8e3f0759e43272a92ebfd22e (patch) | |
tree | 32ad2e21e59e459e796f4edea537dab141e5a49d | |
parent | 431753c66fb10c5bd6e0a25f280a06ead25207c2 (diff) | |
download | aura-central-2af0aa91e0ed0e6a8e3f0759e43272a92ebfd22e.tar.gz |
Issue #26 - 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 fb6315cc4..7ee1a4c93 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; } |