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+

mitz
Reported 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.
Attachments
Avoid -[NSString encodeWithCoder:] (3.30 KB, patch)
2015-05-08 16:09 PDT, mitz
andersca: review+
mitz
Comment 1 2015-05-08 16:02:04 PDT
mitz
Comment 2 2015-05-08 16:09:27 PDT
Created attachment 252754 [details] Avoid -[NSString encodeWithCoder:]
mitz
Comment 3 2015-05-08 16:16:01 PDT
Note You need to log in before you can comment on or make changes to this bug.