bug 1072150, backout the release assertion which changed the ancient requirements of nsContentUtils::IsCallerChrome(), a=backout

This commit is contained in:
Olli Pettay 2015-09-27 00:52:26 +03:00
parent d9af8f7cd2
commit 2b5820fdb4

View File

@ -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);