Bug 341604 - modify CheckMayLoad to allow sandboxed workers to load blob and data URIs r=jst
This commit is contained in:
@@ -10072,7 +10072,7 @@ nsDocShell::AddState(nsIVariant *aData, const nsAString& aTitle,
|
||||
nsCOMPtr<nsIPrincipal> principal = docScriptObj->GetPrincipal();
|
||||
|
||||
if (!principal ||
|
||||
NS_FAILED(principal->CheckMayLoad(newURI, true))) {
|
||||
NS_FAILED(principal->CheckMayLoad(newURI, true, false))) {
|
||||
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user