change last revision to use general API rather than requiring a new one. r=morse@netscape.com. bug 25684

git-svn-id: svn://10.0.0.236/trunk@73567 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2000-06-30 01:23:16 +00:00
parent 5089e8ba38
commit 08d1dbfe04

View File

@@ -34,6 +34,7 @@
#include "nsILoadGroup.h"
#include "nsICategoryManager.h"
#include "nsIHTTPProtocolHandler.h" // for NS_HTTP_STARTUP_CATEGORY
#include "nsIInterfaceRequestor.h"
#include "nsIPrompt.h"
static NS_DEFINE_CID(kINetModuleMgrCID, NS_NETMODULEMGR_CID);
@@ -230,8 +231,11 @@ nsCookieHTTPNotify::AsyncExamineResponse(nsISupports *aContext)
if (NS_FAILED(rv)) return rv;
}
nsCOMPtr<nsIInterfaceRequestor> pInterfaces;
nsCOMPtr<nsIPrompt> pPrompter;
pHTTPConnection->GetPrompter(getter_AddRefs(pPrompter));
pHTTPConnection->GetNotificationCallbacks(getter_AddRefs(pInterfaces));
if (pInterfaces)
pInterfaces->GetInterface(NS_GET_IID(nsIPrompt), getter_AddRefs(pPrompter));
nsCOMPtr<nsIURI> pFirstURL;
if (pChannel) {