Bug 470804 crash [@ NS_GetInnermostURI - nsScriptSecurityManager::CheckLoadURIWithPrincipal], r=bz, sr=dveditz

This commit is contained in:
timeless@mozdev.org 2009-01-01 15:45:23 -08:00
parent dd512bcb35
commit 9d1932e7d2

View File

@ -1284,6 +1284,7 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
nsIScriptSecurityManager::DISALLOW_INHERIT_PRINCIPAL), nsIScriptSecurityManager::DISALLOW_INHERIT_PRINCIPAL),
NS_ERROR_UNEXPECTED); NS_ERROR_UNEXPECTED);
NS_ENSURE_ARG_POINTER(aPrincipal); NS_ENSURE_ARG_POINTER(aPrincipal);
NS_ENSURE_ARG_POINTER(aTargetURI);
if (aPrincipal == mSystemPrincipal) { if (aPrincipal == mSystemPrincipal) {
// Allow access // Allow access