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
Родитель 6311eaf83c
Коммит 3bd1951671
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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