mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
Bug #193317 --> 100% CPU viewing news w/ a background image. Fix this by not implementing SetOriginalURI. This was
confusing image lib which reloads the image if the current url on the channel does not match the original URI on the channel. IMAP does not implement this method either. r/sr=bienvenu
This commit is contained in:
parent
bf70be26b1
commit
6c6106530b
@ -756,7 +756,22 @@ nsNntpCacheStreamListener::OnDataAvailable(nsIRequest *request, nsISupports * aC
|
||||
nsCOMPtr <nsIRequest> ourRequest = do_QueryInterface(mChannelToUse);
|
||||
return mListener->OnDataAvailable(ourRequest, aCtxt, aInStream, aSourceOffset, aCount);
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsNNTPProtocol::GetOriginalURI(nsIURI* *aURI)
|
||||
{
|
||||
// News does not seem to have the notion of an original URI (See Bug #193317)
|
||||
// *aURI = m_originalUrl ? m_originalUrl : m_url;
|
||||
*aURI = m_url;
|
||||
NS_IF_ADDREF(*aURI);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsNNTPProtocol::SetOriginalURI(nsIURI* aURI)
|
||||
{
|
||||
// News does not seem to have the notion of an original URI (See Bug #193317)
|
||||
return NS_OK; // ignore
|
||||
}
|
||||
|
||||
nsresult nsNNTPProtocol::SetupPartExtractorListener(nsIStreamListener * aConsumer)
|
||||
{
|
||||
PRBool convertData;
|
||||
|
@ -183,7 +183,10 @@ public:
|
||||
|
||||
NS_IMETHOD Cancel(nsresult status); // handle stop button
|
||||
NS_IMETHOD GetContentType(nsACString &aContentType);
|
||||
NS_IMETHOD AsyncOpen(nsIStreamListener *listener, nsISupports *ctxt);
|
||||
NS_IMETHOD AsyncOpen(nsIStreamListener *listener, nsISupports *ctxt);
|
||||
NS_IMETHOD GetOriginalURI(nsIURI* *aURI);
|
||||
NS_IMETHOD SetOriginalURI(nsIURI* aURI);
|
||||
|
||||
nsresult LoadUrl(nsIURI * aURL, nsISupports * aConsumer);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user