diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index 48623ec4aa32..3412ca90aa55 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -39,7 +39,6 @@ #include "nsIPref.h" #include "nsIProxyAutoConfig.h" #include "nsIFile.h" -#include "nsIFileChannel.h" #include "nsIInputStream.h" #include "nsIIOService.h" #include "nsIURL.h" @@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request, { char* urlString; nsCOMPtr localFile; - nsCOMPtr fileChannel = do_QueryInterface(channel); + nsCOMPtr streamAsFile = do_QueryInterface(channel); - if (fileChannel) - rv = fileChannel->GetFile(getter_AddRefs(localFile)); + if (streamAsFile) + rv = streamAsFile->GetFile(getter_AddRefs(localFile)); if (NS_SUCCEEDED(rv) && localFile) { diff --git a/modules/plugin/nglsrc/nsPluginHostImpl.cpp b/modules/plugin/nglsrc/nsPluginHostImpl.cpp index 48623ec4aa32..3412ca90aa55 100644 --- a/modules/plugin/nglsrc/nsPluginHostImpl.cpp +++ b/modules/plugin/nglsrc/nsPluginHostImpl.cpp @@ -39,7 +39,6 @@ #include "nsIPref.h" #include "nsIProxyAutoConfig.h" #include "nsIFile.h" -#include "nsIFileChannel.h" #include "nsIInputStream.h" #include "nsIIOService.h" #include "nsIURL.h" @@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request, { char* urlString; nsCOMPtr localFile; - nsCOMPtr fileChannel = do_QueryInterface(channel); + nsCOMPtr streamAsFile = do_QueryInterface(channel); - if (fileChannel) - rv = fileChannel->GetFile(getter_AddRefs(localFile)); + if (streamAsFile) + rv = streamAsFile->GetFile(getter_AddRefs(localFile)); if (NS_SUCCEEDED(rv) && localFile) {