Skip to content

Commit

Permalink
Don't apply whitelist to if font family is generic (#13205)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilgrim-brave authored and bsclifton committed May 31, 2022
1 parent 82ba4d6 commit f0261a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void RegisterAllowFontFamilyCallback(AllowFontFamilyCallback callback) {
// does NOT find a matching font, because we want to allow web fonts
// unconditionally.
#define BRAVE_GET_FONT_DATA \
if (brave::GetAllowFontFamilyCallback() && \
if ((!curr_family->FamilyIsGeneric()) && \
brave::GetAllowFontFamilyCallback() && \
!brave::GetAllowFontFamilyCallback()->Run( \
GetFontSelector()->GetExecutionContext(), \
curr_family->FamilyName())) \
Expand Down

0 comments on commit f0261a0

Please sign in to comment.