From 7732cc2d409e9ae8304b6633ba9f922ee41d5d0b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 5 Mar 2011 04:55:46 -0800 Subject: Disallow serializing error URLs to the state. --- CyteKit/WebViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CyteKit') 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; } -- cgit v1.2.3