Bug 1027579 - Do not load fonts from the cache if LOAD_BYPASS_CACHE is set. r=jfkthame r=bz

--HG--
extra : rebase_source : a98200dacf098aa2de926aebaa54c79c242f8ae3
This commit is contained in:
Dragana Damjanovic 2015-09-16 04:46:00 +02:00
parent ea76ea7a04
commit 102529365a

View File

@ -1338,6 +1338,12 @@ FontFaceSet::CheckFontLoad(const gfxFontFaceSrc* aFontFaceSrc,
*aBypassCache = true;
}
}
uint32_t flags;
if (NS_SUCCEEDED(docShell->GetDefaultLoadFlags(&flags))) {
if (flags & nsIRequest::LOAD_BYPASS_CACHE) {
*aBypassCache = true;
}
}
}
return rv;