Bug 125959

Summary: [Cocoa] Allow the web process plug-in to intercept resource requests
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: mitz
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Add -webProcessPlugInBrowserContextController:frame:willSendRequest:redirectResponse: andersca: review+

Description mitz 2013-12-18 16:12:14 PST
[Cocoa] Allow the web process plug-in to intercept resource requests
Comment 1 mitz 2013-12-18 16:17:03 PST
Created attachment 219580 [details]
Add -webProcessPlugInBrowserContextController:frame:willSendRequest:redirectResponse:
Comment 2 Anders Carlsson 2013-12-18 16:34:44 PST
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.
Comment 3 mitz 2017-03-25 19:22:40 PDT
Committed <https://trac.webkit.org/r160809>.