mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1072150, backout the release assertion which changed the ancient requirements of nsContentUtils::IsCallerChrome(), a=backout
This commit is contained in:
parent
d9af8f7cd2
commit
2b5820fdb4
@ -2710,7 +2710,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);
|
||||
|
Loading…
Reference in New Issue
Block a user