Changeset 187288 in webkit


Ignore:
Timestamp:
Jul 23, 2015 9:53:26 PM (9 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/21929532> REGRESSION (r184026): Safari AutoFill with Contact info for phone number is broken
https://bugs.webkit.org/show_bug.cgi?id=147249

Reviewed by Sam Weinig.

  • Shared/API/Cocoa/WKRemoteObjectCoder.mm:

(encodeObject): Use encodeString only for strings that encode as NSString or
NSMutableString. It can’t encode arbitrary NSString subclasses.
(decodeObject): Use decodeString for NSMutableString as well.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r187286 r187288  
     12015-07-23  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/21929532> REGRESSION (r184026): Safari AutoFill with Contact info for phone number is broken
     4        https://bugs.webkit.org/show_bug.cgi?id=147249
     5
     6        Reviewed by Sam Weinig.
     7
     8        * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
     9        (encodeObject): Use encodeString only for strings that encode as NSString or
     10        NSMutableString. It can’t encode arbitrary NSString subclasses.
     11        (decodeObject): Use decodeString for NSMutableString as well.
     12
    1132015-07-23  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm

    r184026 r187288  
    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.