Bug 616841, part 4: "Localize" the IPC testshell JSContext. r=bent a=b
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user