| Summary: | Add WKWebsiteDataStore configuration option to enable Mock app bundle testing | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brady Eidson <beidson> | ||||||
| Component: | WebKit Misc. | Assignee: | Brady Eidson <beidson> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=233726 | ||||||||
| Attachments: |
|
||||||||
|
Description
Brady Eidson
2021-11-30 20:58:51 PST
Created attachment 445515 [details]
EWS v1
Comment on attachment 445515 [details] EWS v1 View in context: https://bugs.webkit.org/attachment.cgi?id=445515&action=review > Source/WebKit/NetworkProcess/NetworkSession.h:131 > + virtual bool webpushdUsesMockBundlesForTesting() const { return false; } Can we not call it "webpushd" in the code? webPushDaemon below seems a *tad* better, though still maybe not perfect. > Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.h:90 > + WebPushD::WebPushDaemonConnectionConfiguration webPushDaemonConnectionConfiguration; Oh I see, you have ... already done it. Quite the name! > Source/WebKit/Shared/WebPushDaemonConnectionConfiguration.h:62 > + WTFMove(*useMockBundlesForTesting), > + WTFMove(*hostAppAuditTokenData) These WTFMoves seem a bit unnecessary > Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h:89 > +@property (nonatomic) BOOL webpushdUsesMockBundlesForTesting WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); Oof, surely not in the SPI though, please? Created attachment 445531 [details]
Patch for landing v1
For posterity: The Apple Silicon build failures were due to the patch in https://bugs.webkit.org/show_bug.cgi?id=233567 running right before this one in the EWS queue, and were not caused by this patch. Committed r286355 (244714@main): <https://commits.webkit.org/244714@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445531 [details]. |