Revert "reinstantiate assert, present in up to esr68 (221cec53)"

This commit is contained in:
2024-08-10 21:49:28 +08:00
parent c26465d1ec
commit 54aedc161f
+1 -1
View File
@@ -2721,7 +2721,7 @@ nsContentUtils::SubjectPrincipal()
MOZ_ASSERT(NS_IsMainThread());
JSContext* cx = GetCurrentJSContext();
if (!cx) {
MOZ_CRASH("Accessing the Subject Principal without an AutoJSAPI on the stack is forbidden");
return GetSystemPrincipal();
}
JSCompartment *compartment = js::GetContextCompartment(cx);