bug 802573 - give favicon low http priority r=mak

--HG--
extra : rebase_source : ab3b717b23fcdbec8d4fa112b8a5e46e6dc2a043
This commit is contained in:
Patrick McManus 2014-01-14 09:37:24 -05:00
parent dd0f5c8651
commit 398d7cfb1d

View File

@ -18,6 +18,7 @@
#include "nsPrintfCString.h"
#include "nsStreamUtils.h"
#include "nsIPrivateBrowsingChannel.h"
#include "nsISupportsPriority.h"
#include <algorithm>
using namespace mozilla::places;
@ -552,6 +553,12 @@ AsyncFetchAndSetIconFromNetwork::Run()
rv = pbChannel->SetPrivate(mFaviconLoadPrivate);
NS_ENSURE_SUCCESS(rv, rv);
}
nsCOMPtr<nsISupportsPriority> priorityChannel = do_QueryInterface(channel);
if (priorityChannel) {
priorityChannel->AdjustPriority(nsISupportsPriority::PRIORITY_LOWEST);
}
return channel->AsyncOpen(this, nullptr);
}