зеркало из https://github.com/mozilla/pjs.git
86984 - make history.length sameOrigin-accessible. Security prefs change.
91714 - CheckLoadURI should trest 'safe' and 'unsafe' about: URLs as different protocols 56260 - 'Remember This Decision' in signed script grant dialog should default to unchecked 83131 - More descriptive security error messages 93951 - Added null check in GetBaseURIScheme to prevent crash. All bugs r=jtaylor, sr=jst
This commit is contained in:
Родитель
4ebdf54359
Коммит
27ecd1d149
|
@ -710,15 +710,7 @@ nsXMLHttpRequest::Open(const char *method, const char *url)
|
|||
rv = secMan->CheckConnect(cx, targetURI, "XMLHttpRequest","open");
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
// Security check failed. The above call set a JS exception. The
|
||||
// following lines ensure that the exception is propagated.
|
||||
|
||||
nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rv));
|
||||
nsCOMPtr<nsIXPCNativeCallContext> cc;
|
||||
if(NS_SUCCEEDED(rv))
|
||||
xpc->GetCurrentNativeCallContext(getter_AddRefs(cc));
|
||||
if (cc)
|
||||
cc->SetExceptionWasThrown(PR_TRUE);
|
||||
// Security check failed.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче