mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
Revert "reinstantiate assert, present in up to esr68 (221cec53)"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user