Backed out changeset fd24a9549c1d (bug 1021221) for mochitest-3 orange

This commit is contained in:
Wes Kocher 2014-11-24 14:42:05 -08:00
Родитель c5cd289dbc
Коммит e2dfdad94e
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -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]);