mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1276138. Remove the current/safe JSContext getters from nsScriptSecurityManager. r=mrbkap
This commit is contained in:
parent
260d626f13
commit
4ec7cc4fc1
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user