mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1379786, part 1 - Remove dead code related to the security manager. r=mrbkap
Also, one unused include of nsIProgrammingLanguage, which is unrelated. MozReview-Commit-ID: LJf2NSwmaYG --HG-- extra : rebase_source : 63dfca9185535dbfa695cf2f383d81a14ce423c0
This commit is contained in:
parent
bb284dfc84
commit
5de8ffcbf5
@ -16,7 +16,6 @@
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDOMException.h"
|
||||
#include "nsIException.h"
|
||||
#include "nsIProgrammingLanguage.h"
|
||||
#include "nsMemory.h"
|
||||
#include "xpcprivate.h"
|
||||
|
||||
|
@ -233,11 +233,6 @@ nsresult nsJSThunk::EvaluateScript(nsIChannel *aChannel,
|
||||
NS_UnescapeURL(script);
|
||||
|
||||
|
||||
nsCOMPtr<nsIScriptSecurityManager> securityManager;
|
||||
securityManager = do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID, &rv);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
// New script entry point required, due to the "Create a script" step of
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#javascript-protocol
|
||||
nsAutoMicroTask mt;
|
||||
|
@ -7953,12 +7953,6 @@ StorageDirectoryHelper::RunOnMainThread()
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIScriptSecurityManager> secMan =
|
||||
do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID, &rv);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
for (uint32_t count = mOriginProps.Length(), index = 0;
|
||||
index < count;
|
||||
index++) {
|
||||
|
@ -83,8 +83,6 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(SandboxPrivate)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
const char kScriptSecurityManagerContractID[] = NS_SCRIPTSECURITYMANAGER_CONTRACTID;
|
||||
|
||||
class nsXPCComponents_utils_Sandbox : public nsIXPCComponents_utils_Sandbox,
|
||||
public nsIXPCScriptable
|
||||
{
|
||||
|
@ -804,10 +804,6 @@ nsWindowWatcher::OpenWindowInternal(mozIDOMWindowProxy* aParent,
|
||||
SizeSpec sizeSpec;
|
||||
CalcSizeSpec(features, sizeSpec);
|
||||
|
||||
nsCOMPtr<nsIScriptSecurityManager> sm(
|
||||
do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID));
|
||||
|
||||
|
||||
// XXXbz Why is an AutoJSAPI good enough here? Wouldn't AutoEntryScript (so
|
||||
// we affect the entry global) make more sense? Or do we just want to affect
|
||||
// GetSubjectPrincipal()?
|
||||
|
Loading…
Reference in New Issue
Block a user