Bug 221627

Summary: Use CompletionHandler instead of ApplicationManifestCallback
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Alex Christensen
Reported 2021-02-09 13:59:58 PST
Use CompletionHandler instead of ApplicationManifestCallback
Attachments
Patch (10.90 KB, patch)
2021-02-09 14:00 PST, Alex Christensen
no flags
Patch (11.30 KB, patch)
2021-02-09 14:36 PST, Alex Christensen
no flags
Patch (10.69 KB, patch)
2021-02-09 17:25 PST, Alex Christensen
no flags
Patch (11.42 KB, patch)
2021-02-09 20:59 PST, Alex Christensen
no flags
Alex Christensen
Comment 1 2021-02-09 14:00:33 PST
Chris Dumez
Comment 2 2021-02-09 14:30:54 PST
Comment on attachment 419760 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=419760&action=review > Source/WebKit/WebProcess/WebPage/WebPage.h:2184 > + HashMap<uint64_t, CompletionHandler<void(const Optional<WebCore::ApplicationManifest>&)>> m_applicationManifestFetchCallbackMap; Now that you are storing CompletionHandlers in a data member, you may need to do something in the WebPage destructor to make sure all remaining completion handlers are called before destruction. Otherwise, you may end up with debug assertion hits in some cases.
Alex Christensen
Comment 3 2021-02-09 14:36:25 PST
Alex Christensen
Comment 4 2021-02-09 17:25:53 PST
Alex Christensen
Comment 5 2021-02-09 20:59:41 PST
Alex Christensen
Comment 6 2021-02-09 21:22:50 PST
Radar WebKit Bug Importer
Comment 7 2021-02-09 21:23:12 PST
Note You need to log in before you can comment on or make changes to this bug.