From 2b5820fdb4d4058393a0ee1db760c6ab4354c8d8 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Sun, 27 Sep 2015 00:52:26 +0300 Subject: [PATCH] bug 1072150, backout the release assertion which changed the ancient requirements of nsContentUtils::IsCallerChrome(), a=backout --- dom/base/nsContentUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 32b6be7c9f5..886169c32cd 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -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);