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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user