summaryrefslogtreecommitdiff
path: root/CyteKit/WebView.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-05 03:54:19 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:37 -0800
commitd323285e7d6f4836a189d9419b716b7dbc8c2da6 (patch)
tree4f51eaf53ddb0bfc4c744d101c275c414f0e0285 /CyteKit/WebView.mm
parent9dbfe708245db7d2dd2c8e779efb413ef0c3f8d3 (diff)
Disallow serializing ignored URLs to the state.
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r--CyteKit/WebView.mm8
1 files changed, 1 insertions, 7 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 8fd362f..dd72f5a 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -45,13 +45,6 @@
#include "iPhonePrivate.h"
// CYWebPolicyDecision* {{{
-enum CYWebPolicyDecision {
- CYWebPolicyDecisionUnknown,
- CYWebPolicyDecisionDownload,
- CYWebPolicyDecisionIgnore,
- CYWebPolicyDecisionUse,
-};
-
@interface CYWebPolicyDecisionMediator : NSObject <
WebPolicyDecisionListener
> {
@@ -165,6 +158,7 @@ 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];
[mediator decide];
}
// }}}