| Summary: | [macOS] Remove unneeded sandbox extension member | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Per Arne Vollan <pvollan> | ||||||||
| Component: | WebKit Misc. | Assignee: | Per Arne Vollan <pvollan> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | darin, mmaxfield, sam, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Per Arne Vollan
2021-07-29 08:27:12 PDT
Created attachment 434521 [details]
Patch
Comment on attachment 434521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434521&action=review > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:1282 > +void WebProcess::switchFromStaticFontRegistryToUserFontRegistry(const WebKit::SandboxExtension::Handle& fontMachExtensionHandle) What is the point of changing this to an l-value? In general, handles should always be passed by r-value. Created attachment 434537 [details]
Patch
(In reply to Sam Weinig from comment #2) > Comment on attachment 434521 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=434521&action=review > > > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:1282 > > +void WebProcess::switchFromStaticFontRegistryToUserFontRegistry(const WebKit::SandboxExtension::Handle& fontMachExtensionHandle) > > What is the point of changing this to an l-value? In general, handles should > always be passed by r-value. Ah, good point. I have reverted back to the previous signature. Thanks for reviewing! Does this actually improve performance on OSes which have a static registry? (In reply to Myles C. Maxfield from comment #5) > Does this actually improve performance on OSes which have a static registry? Good point, I will start testing this now. Thanks for reviewing! My review+ assumes that this works as expected and improves performance. (In reply to Darin Adler from comment #7) > My review+ assumes that this works as expected and improves performance. Will test performance before landing. Thanks for reviewing! *** Bug 228583 has been marked as a duplicate of this bug. *** (In reply to Per Arne Vollan from comment #8) > (In reply to Darin Adler from comment #7) > > My review+ assumes that this works as expected and improves performance. > > Will test performance before landing. > > Thanks for reviewing! Landing just the sandbox extension bits, since re-enabling the font pre-warming does not show a meaningful performance improvement. Created attachment 434765 [details]
Patch
Committed r280542 (240169@main): <https://commits.webkit.org/240169@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434765 [details]. |