[Cocoa] Allow the web process plug-in to intercept resource requests
Created attachment 219580 [details] Add -webProcessPlugInBrowserContextController:frame:willSendRequest:redirectResponse:
Comment on attachment 219580 [details] Add -webProcessPlugInBrowserContextController:frame:willSendRequest:redirectResponse: View in context: https://bugs.webkit.org/attachment.cgi?id=219580&action=review > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:144 > + if (loadDelegate) { > setUpPageLoaderClient(self, *_page); > - else > + setUpResourceLoadClient(self, *_page); I'd use an early return here to get rid of the ugly one-liner inside the brace.
Committed <https://trac.webkit.org/r160809>.