Bug 1673964 - Fix a typo in an exception message. r=boris

> CSSStyleSheet.cssRules getter: Can't access rules of still-loading
> stylsheet

I have no idea what an stylsheet is :)

Differential Revision: https://phabricator.services.mozilla.com/D95064
This commit is contained in:
Emilio Cobos Álvarez 2020-10-28 21:22:43 +00:00
parent f654e61a4f
commit 706baf70b6

View File

@ -934,7 +934,7 @@ bool StyleSheet::AreRulesAvailable(nsIPrincipal& aSubjectPrincipal,
// Rules are not available on incomplete sheets.
if (!IsComplete()) {
aRv.ThrowInvalidAccessError(
"Can't access rules of still-loading stylsheet");
"Can't access rules of still-loading style sheet");
return false;
}
//-- Security check: Only scripts whose principal subsumes that of the