From: Jay Freeman (saurik) Date: Thu, 20 Oct 2011 08:32:17 +0000 (-0700) Subject: Remove WebDefaultUIKitDelegate override for CYWebView. X-Git-Tag: v1.1.3~1 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f9257f618734672534a3955c16aa83acfa5e1786 Remove WebDefaultUIKitDelegate override for CYWebView. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 83f51e3f..58a380ef 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10374,14 +10374,6 @@ id Dealloc_(id self, SEL selector) { return object; }*/ -Class $WebDefaultUIKitDelegate; - -MSHook(void, UIWebDocumentView$_setUIKitDelegate$, UIWebDocumentView *self, SEL _cmd, id delegate) { - if (delegate == nil && $WebDefaultUIKitDelegate != nil) - delegate = [$WebDefaultUIKitDelegate sharedUIKitDelegate]; - return _UIWebDocumentView$_setUIKitDelegate$(self, _cmd, delegate); -} - static NSSet *MobilizedFiles_; static NSURL *MobilizeURL(NSURL *url) { @@ -10551,13 +10543,6 @@ int main(int argc, char *argv[]) { method_setImplementation(CFXPreferencesPropertyListSource$createPlistFromDisk, reinterpret_cast(&$CFXPreferencesPropertyListSource$createPlistFromDisk)); } - $WebDefaultUIKitDelegate = objc_getClass("WebDefaultUIKitDelegate"); - Method UIWebDocumentView$_setUIKitDelegate$(class_getInstanceMethod([WebView class], @selector(_setUIKitDelegate:))); - if (UIWebDocumentView$_setUIKitDelegate$ != NULL) { - _UIWebDocumentView$_setUIKitDelegate$ = reinterpret_cast(method_getImplementation(UIWebDocumentView$_setUIKitDelegate$)); - method_setImplementation(UIWebDocumentView$_setUIKitDelegate$, reinterpret_cast(&$UIWebDocumentView$_setUIKitDelegate$)); - } - $NSURLConnection = objc_getClass("NSURLConnection"); Method NSURLConnection$init$(class_getInstanceMethod($NSURLConnection, @selector(_initWithRequest:delegate:usesCache:maxContentLength:startImmediately:connectionProperties:))); if (NSURLConnection$init$ != NULL) {