Use CompletionHandler instead of ApplicationManifestCallback
Created attachment 419760 [details] Patch
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.
Created attachment 419768 [details] Patch
Created attachment 419794 [details] Patch
Created attachment 419811 [details] Patch
http://trac.webkit.org/r272637
<rdar://problem/74174444>