Bug 1599226 - Suppress Hazard Analysis through nsJSPrincipals::isSystemOrAddonPrincipal r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D62771

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2020-02-13 19:10:14 +00:00
parent 87c65e049e
commit 362986be19

View File

@ -386,6 +386,7 @@ bool nsJSPrincipals::write(JSContext* aCx, JSStructuredCloneWriter* aWriter) {
}
bool nsJSPrincipals::isSystemOrAddonPrincipal() {
JS::AutoSuppressGCAnalysis suppress;
return this->IsSystemPrincipal() ||
this->GetIsAddonOrExpandedAddonPrincipal();
}