The current implementation of the Storage Access API messages the UI Process, which in turn messages the Network Process for answers. We should avoid this extra hop through the UIProcess, since the state is held entirely in the Network Process. The one exception is when a user prompt is needed, but that should be triggered by the Network Process requesting the UI Process perform that interaction.
<rdar://problem/47611249>
Created attachment 360468 [details] Patch
Created attachment 360469 [details] Patch
Created attachment 360470 [details] Patch
Created attachment 360471 [details] Patch
Comment on attachment 360471 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=360471&action=review r=me with one minor change. > Source/WebKit/UIProcess/WebPageProxy.h:1383 > + static void requestStorageAccessConfirm(uint64_t pageID, uint64_t frameID, const String& subFrameHost, const String& topFrameHost, CompletionHandler<void(bool)>&&); This should not be static. The NetworkProcessProxy should find the correct WebPageProxy and call a member function on it.
Committed r240676: <https://trac.webkit.org/changeset/240676>