зеркало из https://github.com/mozilla/gecko-dev.git
Replace implementation of nsISupports with thread-safe version. This allows
SSL/HTTPS operations to complete on debug builds with thread-safety checking. r=bryner
This commit is contained in:
Родитель
0bcbeb0f35
Коммит
e4c6cab6d9
|
@ -353,7 +353,7 @@ nsSecurityNameSet::AddNameSet(nsIScriptContext* aScriptContext)
|
||||||
// Methods implementing ISupports //
|
// Methods implementing ISupports //
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS2(nsScriptSecurityManager,
|
NS_IMPL_THREADSAFE_ISUPPORTS2(nsScriptSecurityManager,
|
||||||
nsIScriptSecurityManager,
|
nsIScriptSecurityManager,
|
||||||
nsIXPCSecurityManager)
|
nsIXPCSecurityManager)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
* is using it.
|
* is using it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS2(nsXPCThreadJSContextStackImpl, nsIThreadJSContextStack, nsIJSContextStack)
|
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCThreadJSContextStackImpl,
|
||||||
|
nsIThreadJSContextStack, nsIJSContextStack)
|
||||||
|
|
||||||
static nsXPCThreadJSContextStackImpl* gXPCThreadJSContextStack = nsnull;
|
static nsXPCThreadJSContextStackImpl* gXPCThreadJSContextStack = nsnull;
|
||||||
|
|
||||||
|
|
|
@ -183,9 +183,8 @@ nsProfile::~nsProfile()
|
||||||
/*
|
/*
|
||||||
* nsISupports Implementation
|
* nsISupports Implementation
|
||||||
*/
|
*/
|
||||||
|
NS_IMPL_THREADSAFE_ADDREF(nsProfile)
|
||||||
NS_IMPL_ADDREF(nsProfile)
|
NS_IMPL_THREADSAFE_RELEASE(nsProfile)
|
||||||
NS_IMPL_RELEASE(nsProfile)
|
|
||||||
|
|
||||||
NS_INTERFACE_MAP_BEGIN(nsProfile)
|
NS_INTERFACE_MAP_BEGIN(nsProfile)
|
||||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIProfile)
|
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIProfile)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче