bug 278019: prevent crash after secure->insecure transition, r=jst,sr=bryner

git-svn-id: svn://10.0.0.236/trunk@168824 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shaver%mozilla.org
2005-02-04 23:47:18 +00:00
parent 1a2a40b644
commit be96428a57

View File

@@ -998,7 +998,9 @@ nsPasswordManager::Notify(nsIContent* aFormNode,
// Check the reject list
nsCAutoString realm;
if (!GetPasswordRealm(aFormNode->GetDocument()->GetDocumentURI(), realm))
// XXX bug 281125: GetDocument() could sometimes be null here, hinting
// XXX at a problem with document teardown while a modal dialog is posted.
if (!GetPasswordRealm(aFormNode->GetOwnerDoc()->GetDocumentURI(), realm))
return NS_OK;
PRInt32 rejectValue;