Changeset 224256 in webkit


Ignore:
Timestamp:
Oct 31, 2017 3:41:22 PM (6 years ago)
Author:
Wenson Hsieh
Message:

Followup to r224238: API::Attachment should generate a _WKAttachment ObjC wrapper
https://bugs.webkit.org/show_bug.cgi?id=179080

Reviewed by Tim Horton.

Fixes a failing API test. The new Attachment object type added in r224238 was not actually being handled in
Object::newObject, so a plain WKObject Objective C wrapper was being created; fix this by allocating a new
_WKAttachment object for Type::Attachment.

  • Shared/Cocoa/APIObject.mm:

(API::Object::newObject):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r224254 r224256  
     12017-10-31  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Followup to r224238: API::Attachment should generate a _WKAttachment ObjC wrapper
     4        https://bugs.webkit.org/show_bug.cgi?id=179080
     5
     6        Reviewed by Tim Horton.
     7
     8        Fixes a failing API test. The new Attachment object type added in r224238 was not actually being handled in
     9        Object::newObject, so a plain WKObject Objective C wrapper was being created; fix this by allocating a new
     10        _WKAttachment object for Type::Attachment.
     11
     12        * Shared/Cocoa/APIObject.mm:
     13        (API::Object::newObject):
     14
    1152017-10-31  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit/Shared/Cocoa/APIObject.mm

    r219764 r224256  
    6969#import "WKWebsiteDataStoreInternal.h"
    7070#import "WKWindowFeaturesInternal.h"
     71#import "_WKAttachmentInternal.h"
    7172#import "_WKAutomationSessionInternal.h"
    7273#import "_WKDownloadInternal.h"
     
    106107        break;
    107108
     109    case Type::Attachment:
     110        wrapper = [_WKAttachment alloc];
     111        break;
     112
    108113    case Type::AuthenticationChallenge:
    109114        wrapper = NSAllocateObject([WKNSURLAuthenticationChallenge self], size, nullptr);
Note: See TracChangeset for help on using the changeset viewer.