summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 21:36:56 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 22:05:59 -0700
commit9e130bc217d17c09d3dd85d3f0400c0cf447d157 (patch)
treeb2d249b7dae603620083057ee784097a57787414 /MobileCydia.mm
parentcfc530e64b46fe5d898300a6df52edf2bbfc5893 (diff)
Create a lame helper for clearWindowObject.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm9
1 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 24608e6..7ce0f78 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3932,12 +3932,16 @@ static _H<NSMutableSet> Diversions_;
@end
+@class CydiaObject;
+
@interface CydiaWebViewController : CyteWebViewController {
_H<CydiaObject> cydia_;
}
+ (void) addDiversion:(Diversion *)diversion;
+ (NSURLRequest *) requestWithHeaders:(NSURLRequest *)request;
++ (void) didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame withCydia:(CydiaObject *)cydia;
+- (void) setDelegate:(id)delegate;
@end
@@ -4540,7 +4544,10 @@ static _H<NSMutableSet> Diversions_;
- (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame {
[super webView:view didClearWindowObject:window forFrame:frame];
+ [CydiaWebViewController didClearWindowObject:window forFrame:frame withCydia:cydia_];
+}
++ (void) didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame withCydia:(CydiaObject *)cydia {
WebDataSource *source([frame dataSource]);
NSURLResponse *response([source response]);
NSURL *url([response URL]);
@@ -4557,7 +4564,7 @@ static _H<NSMutableSet> Diversions_;
}
if (bridged)
- [window setValue:cydia_ forKey:@"cydia"];
+ [window setValue:cydia forKey:@"cydia"];
}
- (void) _setupMail:(MFMailComposeViewController *)controller {