mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 20:42:49 +00:00
Backed out changeset fd24a9549c1d (bug 1021221) for mochitest-3 orange
This commit is contained in:
parent
c5cd289dbc
commit
e2dfdad94e
@ -2455,12 +2455,6 @@ NS_IMETHODIMP ProxyListener::OnStartRequest(nsIRequest *aRequest, nsISupports *c
|
||||
|
||||
nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));
|
||||
if (channel) {
|
||||
// We need to set the initiator type for the image load
|
||||
nsCOMPtr<nsITimedChannel> timedChannel = do_QueryInterface(channel);
|
||||
if (timedChannel) {
|
||||
timedChannel->SetInitiatorType(NS_LITERAL_STRING("img"));
|
||||
}
|
||||
|
||||
nsAutoCString contentType;
|
||||
nsresult rv = channel->GetContentType(contentType);
|
||||
|
||||
@ -2590,12 +2584,6 @@ NS_IMETHODIMP imgCacheValidator::OnStartRequest(nsIRequest *aRequest, nsISupport
|
||||
channelURI->Equals(mRequest->mCurrentURI, &sameURI);
|
||||
|
||||
if (isFromCache && sameURI) {
|
||||
// We need to set the initiator type for the image load
|
||||
nsCOMPtr<nsITimedChannel> timedChannel = do_QueryInterface(channel);
|
||||
if (timedChannel) {
|
||||
timedChannel->SetInitiatorType(NS_LITERAL_STRING("img"));
|
||||
}
|
||||
|
||||
uint32_t count = mProxies.Count();
|
||||
for (int32_t i = count-1; i>=0; i--) {
|
||||
imgRequestProxy *proxy = static_cast<imgRequestProxy *>(mProxies[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user