Bug 158485

Summary: [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebKit Misc.Assignee: David Kilzer (:ddkilzer) <ddkilzer>
Severity: Normal CC: aestes, ap, bfulgham, cdumez, commit-queue, mitz
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2016-06-07 10:51:06 PDT
The -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods are no longer used in WebKit, and the implementation of -_webkit_queryKeysAndValues is buggy since it can't handle multiple values with the same key.

Instead you should create an NSURLComponents object, and call -queryItems to get the list of key-value pairs:

Comment 1 David Kilzer (:ddkilzer) 2016-06-07 10:51:39 PDT
Comment 2 David Kilzer (:ddkilzer) 2016-06-07 10:54:20 PDT
Created attachment 280723 [details]
Patch v1
Comment 3 WebKit Commit Bot 2016-06-07 11:54:34 PDT
Comment on attachment 280723 [details]
Patch v1

Clearing flags on attachment: 280723

Committed r201763: <http://trac.webkit.org/changeset/201763>
Comment 4 WebKit Commit Bot 2016-06-07 11:54:38 PDT
All reviewed patches have been landed.  Closing bug.