[Webkit-unassigned] [Bug 247365] New: [Content Extensions] QueryTransforms should not unconditionally redirect to form-encoded URLs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 2 08:49:40 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247365

            Bug ID: 247365
           Summary: [Content Extensions] QueryTransforms should not
                    unconditionally redirect to form-encoded URLs
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wenson_hsieh at apple.com

Currently, anything that passes through `RedirectAction::URLTransformAction::QueryTransform::applyToURL` gets unconditionally form-encoded (e.g. "=" -> "%20"), regardless of whether any rules actually matched.

This is because we always transform the query through `URLParser::parseURLEncodedForm`, and set the transformed URL query to the result, even if no parameters were removed/replaced/added.

For both performance and correctness, it probably makes sense to allow query parameters to pass through in their original form, if no rules matched.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221102/fefa4a53/attachment.htm>


More information about the webkit-unassigned mailing list