diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-06 12:14:06 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-15 14:39:11 -0800 |
commit | f97db6307650edae08342fab15057a471388afed (patch) | |
tree | a7681a762d8d495e957363316196779939ed1ca0 /UICaboodle | |
parent | 851f4a995d285e0b4b8713f8e70133c95226ba71 (diff) |
Use the same pattern for willSendRequest:'s delegate as other ones.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 2c45468..88dc7a4 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -318,9 +318,8 @@ static void $UIWebViewWebViewDelegate$webView$didReceiveTitle$forFrame$(UIWebVie static NSURLRequest *$UIWebViewWebViewDelegate$webView$resource$willSendRequest$redirectResponse$fromDataSource$(UIWebViewWebViewDelegate *self, SEL sel, WebView *view, id identifier, NSURLRequest *request, NSURLResponse *response, WebDataSource *source) { UIWebView *uiWebView(MSHookIvar<UIWebView *>(self, "uiWebView")); if ([uiWebView respondsToSelector:@selector(webView:resource:willSendRequest:redirectResponse:fromDataSource:)]) - return [uiWebView webView:view resource:identifier willSendRequest:request redirectResponse:response fromDataSource:source]; - else - return request; + request = [uiWebView webView:view resource:identifier willSendRequest:request redirectResponse:response fromDataSource:source]; + return request; } - (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source { |