mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
bug 802573 - give favicon low http priority r=mak
--HG-- extra : rebase_source : ab3b717b23fcdbec8d4fa112b8a5e46e6dc2a043
This commit is contained in:
parent
dd0f5c8651
commit
398d7cfb1d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user