From 4c82468d8d103bec5739222109c7f2f57098c269 Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Tue, 24 Jun 2008 17:10:08 +0200 Subject: [PATCH] Make PrincipalHolder threadsafe since it can be destroyed from off-thread (thanks to XPCSafeJSContexts) and no additional work is required to make it threadsafe. bug 337611, r+sr=jst --- js/src/xpconnect/src/xpccomponents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/xpconnect/src/xpccomponents.cpp b/js/src/xpconnect/src/xpccomponents.cpp index 17107bc8bba..3e1ecd9416f 100644 --- a/js/src/xpconnect/src/xpccomponents.cpp +++ b/js/src/xpconnect/src/xpccomponents.cpp @@ -2961,7 +2961,7 @@ nsXPCComponents_Utils::ReportError() #include "nsNetUtil.h" const char kScriptSecurityManagerContractID[] = NS_SCRIPTSECURITYMANAGER_CONTRACTID; -NS_IMPL_ISUPPORTS1(PrincipalHolder, nsIScriptObjectPrincipal) +NS_IMPL_THREADSAFE_ISUPPORTS1(PrincipalHolder, nsIScriptObjectPrincipal) nsIPrincipal * PrincipalHolder::GetPrincipal()