Changeset 273195 in webkit


Ignore:
Timestamp:
Feb 19, 2021 10:37:59 PM (3 years ago)
Author:
BJ Burg
Message:

[Cocoa] WKBrowsingContextHandle should conform to NSCopying
https://bugs.webkit.org/show_bug.cgi?id=222214

Reviewed by Devin Rousso.

  • Shared/API/Cocoa/WKBrowsingContextHandle.h:
  • Shared/API/Cocoa/WKBrowsingContextHandle.mm:

(-[WKBrowsingContextHandle copyWithZone:]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r273194 r273195  
     12021-02-19  BJ Burg  <bburg@apple.com>
     2
     3        [Cocoa] WKBrowsingContextHandle should conform to NSCopying
     4        https://bugs.webkit.org/show_bug.cgi?id=222214
     5
     6        Reviewed by Devin Rousso.
     7
     8        * Shared/API/Cocoa/WKBrowsingContextHandle.h:
     9        * Shared/API/Cocoa/WKBrowsingContextHandle.mm:
     10        (-[WKBrowsingContextHandle copyWithZone:]):
     11
    1122021-02-19  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebKit/Shared/API/Cocoa/WKBrowsingContextHandle.h

    r243376 r273195  
    2727
    2828WK_CLASS_AVAILABLE(macos(10.10), ios(8.0))
    29 @interface WKBrowsingContextHandle : NSObject <NSSecureCoding>
     29@interface WKBrowsingContextHandle : NSObject <NSSecureCoding, NSCopying>
    3030@end
  • trunk/Source/WebKit/Shared/API/Cocoa/WKBrowsingContextHandle.mm

    r254241 r273195  
    8989}
    9090
     91- (id)copyWithZone:(NSZone *)zone
     92{
     93    return [[WKBrowsingContextHandle allocWithZone:zone] _initWithPageProxyID:_pageProxyID andWebPageID:_webPageID];
     94}
     95
    9196@end
Note: See TracChangeset for help on using the changeset viewer.