Bug 240404 - ApplePayLogoSystemImage needlessly loads PassKit in WebKit child processes on iOS
Summary: ApplePayLogoSystemImage needlessly loads PassKit in WebKit child processes on...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-05-13 16:48 PDT by Tim Horton
Modified: 2022-05-13 23:16 PDT (History)
8 users (show)

See Also:


Attachments
Patch (7.34 KB, patch)
2022-05-13 16:48 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (7.33 KB, patch)
2022-05-13 17:07 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (7.30 KB, patch)
2022-05-13 18:00 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (7.30 KB, patch)
2022-05-13 21:37 PDT, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2022-05-13 16:48:10 PDT
ApplePayLogoSystemImage needlessly loads PassKit in WebKit child processes on iOS
Comment 1 Tim Horton 2022-05-13 16:48:36 PDT
Created attachment 459329 [details]
Patch
Comment 2 Tim Horton 2022-05-13 16:48:39 PDT
<rdar://problem/93070349>
Comment 3 Tim Horton 2022-05-13 17:07:29 PDT
Created attachment 459333 [details]
Patch
Comment 4 Chris Dumez 2022-05-13 17:12:06 PDT
Comment on attachment 459333 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=459333&action=review

r=me

> Source/WTF/wtf/cocoa/FileSystemCocoa.mm:241
> +    static NeverDestroyed<RetainPtr<NSString>> path = adoptNS([^{

Why use adoptNS() + copy? Can we just assign the NSString* to the RetainPtr<> right away?
Comment 5 Tim Horton 2022-05-13 17:40:34 PDT
(In reply to Chris Dumez from comment #4)
> Comment on attachment 459333 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=459333&action=review
> 
> r=me
> 
> > Source/WTF/wtf/cocoa/FileSystemCocoa.mm:241
> > +    static NeverDestroyed<RetainPtr<NSString>> path = adoptNS([^{
> 
> Why use adoptNS() + copy? Can we just assign the NSString* to the
> RetainPtr<> right away?

I ... did not look at the code I was moving. That is weird, I agree!!
Comment 6 Tim Horton 2022-05-13 18:00:51 PDT
Created attachment 459335 [details]
Patch
Comment 7 Tim Horton 2022-05-13 21:37:59 PDT
Created attachment 459345 [details]
Patch
Comment 8 EWS 2022-05-13 23:16:02 PDT
Committed r294188 (250554@main): <https://commits.webkit.org/250554@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459345 [details].