Summary: | [macOS] Deny mach-lookup to the fonts service | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Per Arne Vollan <pvollan> | ||||||||
Component: | WebKit Misc. | Assignee: | Per Arne Vollan <pvollan> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | benjamin, bfulgham, cdumez, cmarcelo, ews-watchlist, mmaxfield, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Per Arne Vollan
2021-02-09 08:47:17 PST
Created attachment 419727 [details]
Patch
Comment on attachment 419727 [details]
Patch
r=me
Comment on attachment 419727 [details]
Patch
Thanks for reviewing!
Committed r272586: <https://commits.webkit.org/r272586> All reviewed patches have been landed. Closing bug and clearing flags on attachment 419727 [details]. Comment on attachment 419727 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=419727&action=review > Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1114 > #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 110000 shouldn't this be "< 120000"? (In reply to Myles C. Maxfield from comment #6) > Comment on attachment 419727 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=419727&action=review > > > Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1114 > > #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 110000 > > shouldn't this be "< 120000"? That is a good point, although in this case, I think these should also be blocked when OS version > 11. Thanks for reviewing! Reverted in <https://trac.webkit.org/changeset/272657/webkit> Created attachment 420465 [details]
Patch
Comment on attachment 420465 [details]
Patch
Nice! r=me
Created attachment 420641 [details]
Patch
Comment on attachment 420641 [details]
Patch
Thanks for reviewing!
Committed r272999: <https://commits.webkit.org/r272999> All reviewed patches have been landed. Closing bug and clearing flags on attachment 420641 [details]. Comment on attachment 420641 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420641&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:7692 > +static bool disableStaticFontRegistry() "disable" is a verb, but the implementation of this function appears to not actually disable anything. Comment on attachment 420641 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420641&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:7686 > + if (String(static_cast<CFStringRef>(font)) != "System") Seems needlessly expensive to construct a WTF::String here: if (CFStringCompare(font, CFSTR("System"), kCFCompareCaseSensitive) != kCFCompareEqualTo) |