Bug 144818

Summary: NSInternalInconsistencyException raised in -[NSString encodeWithCoder:] beneath createEncodedObject when using WKRemoteObjectEncoder for Safari AutoFill
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, sam, thorton
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Avoid -[NSString encodeWithCoder:] andersca: review+

Description mitz 2015-05-08 16:01:50 PDT
An NSString instance can contain an unpaired surrogate, but then trying to encode it with a custom NSCoder results in an exception. This can happen when Safari AutoFill encodes a string originating from a webpage.
Comment 1 mitz 2015-05-08 16:02:04 PDT
<rdar://problem/20757196>
Comment 2 mitz 2015-05-08 16:09:27 PDT
Created attachment 252754 [details]
Avoid -[NSString encodeWithCoder:]
Comment 3 mitz 2015-05-08 16:16:01 PDT
Fixed in <http://trac.webkit.org/r184026>.