diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 16:05:24 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 16:05:24 -0700 |
commit | b73d8da0dad38d15ca4ec307cacdebbe092dec5b (patch) | |
tree | 3f60529e3b67cd4434a494bc72fe531c4f2ae4e0 /CyteKit | |
parent | ade2267f7f870d0a4b1f58c562ab823a9244127b (diff) |
CyteWebView failed to verify a delegate before sending.
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/WebView.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm index 0e8ba71..7fac96e 100644 --- a/CyteKit/WebView.mm +++ b/CyteKit/WebView.mm @@ -171,7 +171,8 @@ static void $UIWebViewWebViewDelegate$webView$addMessageToConsole$(UIWebViewWebV [delegate webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator]; if (![mediator decided] && [UIWebView instancesRespondToSelector:@selector(webView:decidePolicyForNavigationAction:request:frame:decisionListener:)]) [super webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator]; - [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame]; + if ([delegate respondsToSelector:@selector(webView:didDecidePolicy:forNavigationAction:request:frame:)]) + [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame]; [mediator decide]; } // }}} |