Bug 616841, part 4: "Localize" the IPC testshell JSContext. r=bent a=b

This commit is contained in:
Chris Jones
2011-01-14 16:03:21 -06:00
parent a649168c72
commit c2fe1602aa
2 changed files with 28 additions and 11 deletions

View File

@@ -50,6 +50,8 @@
#include "jsdbgapi.h"
#include "jsprf.h"
#include "xpcpublic.h"
#include "XPCShellEnvironment.h"
#include "mozilla/XPCOM.h"
@@ -1127,6 +1129,8 @@ XPCShellEnvironment::Init()
return false;
}
xpc_LocalizeContext(cx);
nsRefPtr<FullTrustSecMan> secman(new FullTrustSecMan());
xpc->SetSecurityManagerForJSContext(cx, secman, 0xFFFF);