At the beginning this was not exposed in WebKit2 APIS, so we had to use custom injected bundle messages to keeps exposing this.
I tried using API::ResourceLoadClient but it's not enough for what we have now. It missed the resources loaded from the disk cache (this sounds like bug because there's loadedFromCache in API::ResourceLoadInfo) and also the ones loaded from the memory cache, because this client receives messages from the network process, not the web process. So, can we just add a resource load client specific for GTK and WPE to stop using injected bundle messages?
Alex, would you be ok with adding internal api just for GTK/WPE to implement web resources loader from the web process but without using injected bundle?
Alex? Youenn? Chris?
Pull request: https://github.com/WebKit/WebKit/pull/6036
Committed 256388@main (051a04847864): <https://commits.webkit.org/256388@main> Reviewed commits have been landed. Closing PR #6036 and removing active labels.