More GetDocument bustage

This commit is contained in:
bzbarsky%mit.edu 2003-07-29 05:48:30 +00:00
parent b6f6ad74ba
commit 01018adcbd

View File

@ -604,10 +604,8 @@ nsPasswordManager::Notify(nsIContent* aFormNode,
PRBool* aCancelSubmit)
{
// Check the reject list
nsCOMPtr<nsIDocument> formDoc;
aFormNode->GetDocument(getter_AddRefs(formDoc));
nsCOMPtr<nsIURI> uri;
formDoc->GetDocumentURL(getter_AddRefs(uri));
formDoc->GetDocument()->GetDocumentURL(getter_AddRefs(uri));
nsCAutoString realm;
uri->GetPrePath(realm);