Bug 1276138. Remove the current/safe JSContext getters from nsScriptSecurityManager. r=mrbkap

This commit is contained in:
Boris Zbarsky 2016-05-27 13:28:14 -04:00
parent 260d626f13
commit 4ec7cc4fc1
2 changed files with 0 additions and 18 deletions

View File

@ -227,20 +227,6 @@ private:
bool mMustFreeName;
};
JSContext *
nsScriptSecurityManager::GetCurrentJSContext()
{
// Get JSContext from stack.
return nsXPConnect::XPConnect()->GetCurrentJSContext();
}
JSContext *
nsScriptSecurityManager::GetSafeJSContext()
{
// Get JSContext from stack.
return nsXPConnect::XPConnect()->GetSafeJSContext();
}
/* static */
bool
nsScriptSecurityManager::SecurityCompareURIs(nsIURI* aSourceURI,

View File

@ -58,10 +58,6 @@ public:
static nsSystemPrincipal*
SystemPrincipalSingletonConstructor();
JSContext* GetCurrentJSContext();
JSContext* GetSafeJSContext();
/**
* Utility method for comparing two URIs. For security purposes, two URIs
* are equivalent if their schemes, hosts, and ports (if any) match. This