mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 987003. Be more careful sandboxing javascript: URLs. r=bholley
This commit is contained in:
parent
b73e696f3d
commit
a6b91bdfca
@ -280,7 +280,8 @@ nsresult nsJSThunk::EvaluateScript(nsIChannel *aChannel,
|
||||
nsIXPConnect *xpc = nsContentUtils::XPConnect();
|
||||
|
||||
nsCOMPtr<nsIXPConnectJSObjectHolder> sandbox;
|
||||
rv = xpc->CreateSandbox(cx, principal, getter_AddRefs(sandbox));
|
||||
// Important: Use a null principal here
|
||||
rv = xpc->CreateSandbox(cx, nullptr, getter_AddRefs(sandbox));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// The nsXPConnect sandbox API gives us a wrapper to the sandbox for
|
||||
|
Loading…
Reference in New Issue
Block a user