diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-02-28 09:24:13 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:50 +0000 |
commit | e124f5222a28c2a3e2081155cbaa02017b763b93 (patch) | |
tree | db1471e929398f5e3d0e79913744a7425d3891c5 /UICaboodle/BrowserView.m | |
parent | da0410f162c4c3aea5ab086ccb8604fd5e60e7fc (diff) |
Fixed _blank behavior for cydia:// due to prophylactic swapping.
Diffstat (limited to 'UICaboodle/BrowserView.m')
-rw-r--r-- | UICaboodle/BrowserView.m | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/UICaboodle/BrowserView.m b/UICaboodle/BrowserView.m index 68427d2..ed6ddbe 100644 --- a/UICaboodle/BrowserView.m +++ b/UICaboodle/BrowserView.m @@ -371,7 +371,7 @@ [book_ pushPage:page]; } -- (BOOL) getSpecial:(NSURL *)url { +- (BOOL) getSpecial:(NSURL *)url swap:(BOOL)swap { #if ForSaurik NSLog(@"getSpecial:%@", url); #endif @@ -391,7 +391,10 @@ return false; if (page != nil) - [self swapPage:page]; + if (swap) + [self swapPage:page]; + else + [self pushPage:page]; return true; } @@ -511,7 +514,7 @@ if (NSURL *url = [request URL]) { if (name == nil) unknown: { - if (![self getSpecial:url]) { + if (![self getSpecial:url swap:NO]) { NSString *scheme([[url scheme] lowercaseString]); if ([scheme isEqualToString:@"mailto"]) [delegate_ openMailToURL:url]; @@ -625,7 +628,7 @@ goto ignore; } - if ([self getSpecial:url]) + if ([self getSpecial:url swap:YES]) goto ignore; else if ([WebView _canHandleRequest:request]) goto use; |