summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-05 04:55:46 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:37 -0800
commit7732cc2d409e9ae8304b6633ba9f922ee41d5d0b (patch)
treec84b49a2354be0ec5ccda5b15c03f77fae1cf461 /CyteKit
parentd323285e7d6f4836a189d9419b716b7dbc8c2da6 (diff)
Disallow serializing error URLs to the state.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/WebViewController.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index e67e6bc..d98bf23 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -421,7 +421,7 @@ float CYScrollViewDecelerationRateNormal;
}
- (void) webView:(WebView *)view didDecidePolicy:(CYWebPolicyDecision)decision forNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame {
- if (decision == CYWebPolicyDecisionUse)
+ if (decision == CYWebPolicyDecisionUse && !error_)
request_ = request;
}