Bug 158485 - [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
Summary: [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAn...
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
Keywords: InRadar
Depends on:
Reported: 2016-06-07 10:51 PDT by David Kilzer (:ddkilzer)
Modified: 2016-06-07 11:54 PDT (History)
6 users (show)

See Also:

Patch v1 (4.91 KB, patch)
2016-06-07 10:54 PDT, David Kilzer (:ddkilzer)
no flags Details | Formatted Diff | Diff

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