⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187331 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 12:55:01 AM (11 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r187288. rdar://problem/21929532

Location:
branches/safari-601.1-branch/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebKit2/ChangeLog

    r187330 r187331  
     12015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r187288. rdar://problem/21929532
     4
     5    2015-07-23  Dan Bernstein  <mitz@apple.com>
     6
     7            <rdar://problem/21929532> REGRESSION (r184026): Safari AutoFill with Contact info for phone number is broken
     8            https://bugs.webkit.org/show_bug.cgi?id=147249
     9
     10            Reviewed by Sam Weinig.
     11
     12            * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
     13            (encodeObject): Use encodeString only for strings that encode as NSString or
     14            NSMutableString. It can’t encode arbitrary NSString subclasses.
     15            (decodeObject): Use decodeString for NSMutableString as well.
     16
    1172015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-601.1-branch/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm

    r184026 r187331  
    242242    }
    243243
    244     if ([object isKindOfClass:[NSString class]]) {
     244    if (objectClass == [NSString class] || objectClass == [NSMutableString class]) {
    245245        encodeString(encoder, object);
    246246        return;
     
    587587        return decodeString(decoder);
    588588
     589    if (objectClass == [NSMutableString class])
     590        return [NSMutableString stringWithString:decodeString(decoder)];
     591
    589592    id result = [objectClass allocWithZone:decoder.zone];
    590593    if (!result)
Note: See TracChangeset for help on using the changeset viewer.