From bd5b532ce6025472cc49dfcbe3461990fab7707b Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Fri, 24 Mar 2000 00:26:51 +0000 Subject: [PATCH] Adding implementation for the new method OnStartURIOpen on nsIURIContentListener. --- docshell/base/nsDSURIContentListener.cpp | 10 ++++++++++ gfx/src/nsImageNetContextAsync.cpp | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/docshell/base/nsDSURIContentListener.cpp b/docshell/base/nsDSURIContentListener.cpp index 0569bfc05b17..2b925bc3cef9 100644 --- a/docshell/base/nsDSURIContentListener.cpp +++ b/docshell/base/nsDSURIContentListener.cpp @@ -54,6 +54,16 @@ NS_INTERFACE_MAP_END // nsDSURIContentListener::nsIURIContentListener //***************************************************************************** +NS_IMETHODIMP nsDSURIContentListener::OnStartURIOpen(nsIURI* aURI, + const char* aWindowTarget, PRBool* aAbortOpen) +{ + if(mParentContentListener) + return mParentContentListener->OnStartURIOpen(aURI, aWindowTarget, + aAbortOpen); + + return NS_OK; +} + NS_IMETHODIMP nsDSURIContentListener::GetProtocolHandler(nsIURI* aURI, nsIProtocolHandler** aProtocolHandler) { diff --git a/gfx/src/nsImageNetContextAsync.cpp b/gfx/src/nsImageNetContextAsync.cpp index 83c04a20dbdf..c679f95d89d3 100644 --- a/gfx/src/nsImageNetContextAsync.cpp +++ b/gfx/src/nsImageNetContextAsync.cpp @@ -176,6 +176,14 @@ NS_IMETHODIMP ImageConsumer::GetInterface(const nsIID & aIID, void * *aInstanceP } // nsIURIContentListener support + +NS_IMETHODIMP +ImageConsumer::OnStartURIOpen(nsIURI* aURI, + const char* aWindowTarget, PRBool* aAbortOpen) +{ + return NS_OK; +} + NS_IMETHODIMP ImageConsumer::GetProtocolHandler(nsIURI *aURI, nsIProtocolHandler **aProtocolHandler) {