Bug 144818 - NSInternalInconsistencyException raised in -[NSString encodeWithCoder:] beneath createEncodedObject when using WKRemoteObjectEncoder for Safari AutoFill
Summary: NSInternalInconsistencyException raised in -[NSString encodeWithCoder:] benea...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-08 16:01 PDT by mitz
Modified: 2015-05-08 16:16 PDT (History)
3 users (show)

See Also:


Attachments
Avoid -[NSString encodeWithCoder:] (3.30 KB, patch)
2015-05-08 16:09 PDT, mitz
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>.