Bug 146263

Summary: Restore binary compatibility with iOS 8 Safari after r185877
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: mitz
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Forward category method calls from WKSecurityOrigin to _WKSecurityOrigin andersca: review+

Description mitz 2015-06-23 17:14:30 PDT
[Cocoa] Restore binary compatibility with iOS 8 Safari after r185877
Comment 1 mitz 2015-06-23 17:17:15 PDT
Created attachment 255451 [details]
Forward category method calls from WKSecurityOrigin to _WKSecurityOrigin
Comment 2 Anders Carlsson 2015-06-23 17:19:36 PDT
Comment on attachment 255451 [details]
Forward category method calls from WKSecurityOrigin to _WKSecurityOrigin

View in context: https://bugs.webkit.org/attachment.cgi?id=255451&action=review

> Source/WebKit2/UIProcess/API/Cocoa/WKSecurityOrigin.mm:85
> +#pragma mark iOS 8 Safari binary compatibility
> +
> +- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector
> +{
> +    return [_WKSecurityOrigin instanceMethodSignatureForSelector:selector];
> +}
> +
> +- (void)forwardInvocation:(NSInvocation *)invocation
> +{
> +    [invocation invokeUsingIMP:[_WKSecurityOrigin instanceMethodForSelector:invocation.selector]];
> +}
> +
>  @end

Can we #if PLATFORM(IOS) this?
Comment 3 mitz 2015-06-23 17:22:12 PDT
Fixed in <http://trac.webkit.org/r185890>.