Bug 207912

Summary: Expand WKRemoteObjectCoder supported POD types to encode NSURLResponse types
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, cdumez, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch bweinstein: review+

Description Alex Christensen 2020-02-18 15:00:03 PST
Expand WKRemoteObjectCoder supported POD types to encode NSURLResponse types
Comment 1 Alex Christensen 2020-02-18 15:03:03 PST
Created attachment 391097 [details]
Patch
Comment 2 Brian Weinstein 2020-02-18 15:43:19 PST
Comment on attachment 391097 [details]
Patch

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

> Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm:153
> +        case 'S': {

Can these two cases be the same?

case ’s’:
case ’S’:
    …

> Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm:366
> +    // char

Nit: // unsigned char..
Comment 3 Alex Christensen 2020-02-18 15:44:37 PST
Comment on attachment 391097 [details]
Patch

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

>> Source/WebKit/Shared/API/Cocoa/WKRemoteObjectCoder.mm:153
>> +        case 'S': {
> 
> Can these two cases be the same?
> 
> case ’s’:
> case ’S’:
>     …

No, but one of my "short value;" should be "unsigned short value;"
Will fix when landing.
Comment 4 Alex Christensen 2020-02-18 15:48:33 PST
http://trac.webkit.org/r256867
Comment 5 Radar WebKit Bug Importer 2020-02-18 15:49:20 PST
<rdar://problem/59569734>