diff --git a/layout/style/nsFontFaceLoader.cpp b/layout/style/nsFontFaceLoader.cpp index fbb14b73da4c..a5a043c09acf 100644 --- a/layout/style/nsFontFaceLoader.cpp +++ b/layout/style/nsFontFaceLoader.cpp @@ -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 httpChannel(do_QueryInterface(channel)); if (httpChannel) httpChannel->SetReferrer(aFontFaceSrc->mReferrer); + nsCOMPtr priorityChannel(do_QueryInterface(channel)); + if (priorityChannel) { + priorityChannel->AdjustPriority(nsISupportsPriority::PRIORITY_HIGH); + } + rv = NS_NewStreamLoader(getter_AddRefs(streamLoader), fontLoader); NS_ENSURE_SUCCESS(rv, rv);