[webkit-changes] [WebKit/WebKit] 71a292: Augment a WTF::URL helper function to return a lis...

Wenson Hsieh noreply at github.com
Tue Jan 10 17:03:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 71a2925a0afe123fc95af80b8336eeb93813fe9d
      https://github.com/WebKit/WebKit/commit/71a2925a0afe123fc95af80b8336eeb93813fe9d
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M Source/WTF/wtf/URL.cpp
    M Source/WTF/wtf/URL.h
    M Tools/TestWebKitAPI/Tests/WTF/URL.cpp

  Log Message:
  -----------
  Augment a WTF::URL helper function to return a list of query parameters
https://bugs.webkit.org/show_bug.cgi?id=250402

Reviewed by Chris Dumez.

Tweak `removeQueryParameters` to return a list of query parameters that were removed, in the order
that they appear in the original URL (including duplicates).

Test: WTF_URL.URLRemoveQueryParameters

* Source/WTF/wtf/URL.cpp:
(WTF::removeQueryParameters):
* Source/WTF/wtf/URL.h:
* Tools/TestWebKitAPI/Tests/WTF/URL.cpp:
(TestWebKitAPI::TEST_F):

Canonical link: https://commits.webkit.org/258755@main




More information about the webkit-changes mailing list