mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
ea76ea7a04
commit
102529365a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user