mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821850 - Let nsExpandedPrincipal through CheckFunctionAccess. r=bz
Otherwise the whole method borks when it discovers that the principal doesn't have a URI.
This commit is contained in:
parent
fd02fd27ef
commit
a2d9d906cb
@ -1692,6 +1692,14 @@ nsScriptSecurityManager::CanExecuteScripts(JSContext* cx,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Same thing for nsExpandedPrincipal, which is pseudo-privileged.
|
||||
nsCOMPtr<nsIExpandedPrincipal> ep = do_QueryInterface(aPrincipal);
|
||||
if (ep)
|
||||
{
|
||||
*result = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-- See if the current window allows JS execution
|
||||
nsIScriptContext *scriptContext = GetScriptContext(cx);
|
||||
if (!scriptContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user