Issue #1885 - Follow-up: Update error message if invalid rootMargin specified.

This commit is contained in:
Moonchild 2022-04-25 13:52:17 +00:00 committed by roytam1
commit 4dace76a04

View file

@ -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;
}