bug 895700 - load user fonts at high priority r=roc

--HG--
extra : rebase_source : ed695dd11ed294b5000e53a3523d83ef44853c2b
This commit is contained in:
Patrick McManus 2013-11-16 09:34:25 -05:00
Родитель 22a3dd902f
Коммит 4f441f5d46
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -29,6 +29,7 @@
#include "nsIContentSecurityPolicy.h"
#include "nsIDocShell.h"
#include "nsIWebNavigation.h"
#include "nsISupportsPriority.h"
#include "nsINetworkSeer.h"
#include "nsIConsoleService.h"
@ -373,6 +374,11 @@ nsUserFontSet::StartLoad(gfxMixedFontFamily* aFamily,
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
if (httpChannel)
httpChannel->SetReferrer(aFontFaceSrc->mReferrer);
nsCOMPtr<nsISupportsPriority> priorityChannel(do_QueryInterface(channel));
if (priorityChannel) {
priorityChannel->AdjustPriority(nsISupportsPriority::PRIORITY_HIGH);
}
rv = NS_NewStreamLoader(getter_AddRefs(streamLoader), fontLoader);
NS_ENSURE_SUCCESS(rv, rv);