Forgot to update calls to formerly-static SecurityCompareURI (r+sr=bz).
This commit is contained in:
Родитель
08f08cbf57
Коммит
4ff074c02b
|
@ -285,6 +285,8 @@ public:
|
|||
|
||||
JSContext* GetSafeJSContext();
|
||||
|
||||
static nsScriptSecurityManager *gScriptSecMan;
|
||||
|
||||
private:
|
||||
|
||||
// GetScriptSecurityManager is the only call that can make one
|
||||
|
|
|
@ -234,9 +234,7 @@ nsCodebasePrincipal::Equals(nsIPrincipal *aOther, PRBool *result)
|
|||
otherCodebase->GetURI(getter_AddRefs(otherURI));
|
||||
|
||||
NS_ENSURE_TRUE(otherURI, NS_ERROR_FAILURE);
|
||||
return nsScriptSecurityManager::SecurityCompareURIs(mURI,
|
||||
otherURI,
|
||||
result);
|
||||
return gScriptSecMan->SecurityCompareURIs(mURI, otherURI, result);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////
|
||||
|
|
|
@ -215,9 +215,7 @@ nsPrincipal::Equals(nsIPrincipal *aOther, PRBool *aResult)
|
|||
aOther->GetURI(getter_AddRefs(otherOrigin));
|
||||
}
|
||||
|
||||
return nsScriptSecurityManager::SecurityCompareURIs(origin,
|
||||
otherOrigin,
|
||||
aResult);
|
||||
return gScriptSecMan->SecurityCompareURIs(origin, otherOrigin, aResult);
|
||||
}
|
||||
|
||||
*aResult = PR_TRUE;
|
||||
|
|
|
@ -2703,7 +2703,7 @@ nsresult nsScriptSecurityManager::Init()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
static nsScriptSecurityManager *gScriptSecMan = nsnull;
|
||||
nsScriptSecurityManager *nsScriptSecurityManager::gScriptSecMan = nsnull;
|
||||
|
||||
jsval nsScriptSecurityManager::sEnabledID = JSVAL_VOID;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче