From be42c6d9ad7a6ed2e1fa78a707bcea3c9249deb8 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 12 Sep 2013 12:31:15 -0700 Subject: [PATCH] Bug 891891 - Back out crash diagnostics. r=me --- js/xpconnect/src/XPCWrappedJSClass.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/js/xpconnect/src/XPCWrappedJSClass.cpp b/js/xpconnect/src/XPCWrappedJSClass.cpp index 739a81760ef8..1e4c9c69f6f3 100644 --- a/js/xpconnect/src/XPCWrappedJSClass.cpp +++ b/js/xpconnect/src/XPCWrappedJSClass.cpp @@ -568,22 +568,6 @@ nsXPCWrappedJSClass::DelegatedQueryInterface(nsXPCWrappedJS* self, REFNSIID aIID, void** aInstancePtr) { - if (MOZ_UNLIKELY(!NS_IsMainThread())) { - printf("Uh oh! DelegatedQueryInterface called off-main-thread!\n"); - printf("Name: %s\n", GetInterfaceName()); - JSCompartment *c = js::GetObjectCompartment(self->GetJSObjectPreserveColor()); - char *origin = nullptr; - nsresult rv = xpc::GetCompartmentPrincipal(c)->GetOrigin(&origin); - if (NS_SUCCEEDED(rv)) { - printf("Principal origin: %s\n", origin); - NS_Free(origin); - } else { - printf("Unable to get origin from principal :-(\n"); - } - nsAutoCString loc(EnsureCompartmentPrivate(c)->GetLocation()); - printf("Global's Location: %s\n", loc.get()); - MOZ_CRASH(); - } if (aIID.Equals(NS_GET_IID(nsIXPConnectJSObjectHolder))) { NS_ADDREF(self); *aInstancePtr = (void*) static_cast(self);