From b73d8da0dad38d15ca4ec307cacdebbe092dec5b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Mar 2011 16:05:24 -0700 Subject: CyteWebView failed to verify a delegate before sending. --- CyteKit/WebView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CyteKit') 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]; } // }}} -- cgit v1.2.3