WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
258389
[Curl] Replace handling of reason-phrase in ResourceResponseCurl
https://bugs.webkit.org/show_bug.cgi?id=258389
Summary
[Curl] Replace handling of reason-phrase in ResourceResponseCurl
Kenji Shukuwa
Reported
2023-06-21 22:27:47 PDT
In ResourceResponseCurl, the reason-phrase of the HTTP status line is obtained in the ResourceResponse::setStatusLine function, but in order to reduce the code to be maintained, replace it with extractReasonPhraseFromHTTPStatusLine of HTTPParsers. Additionally, the reason-phrase can contain ":". Therefore, there is a possibility that the reason-phrase cannot be obtained with the current processing. (for example: HTTP/1.1 999 ABC:DEF)
https://github.com/WebKit/WebKit/blob/e45a46fae1a59709b4d5dd5c043352129364d150/Source/WebCore/platform/network/curl/ResourceResponseCurl.cpp#L117-L129
--- auto splitPosition = header.find(':'); if (splitPosition != notFound) { ... } else if (startsWithLettersIgnoringASCIICase(header, "http"_s)) { // This is the first line of the response. setStatusLine(header); } ---
Attachments
Add attachment
proposed patch, testcase, etc.
Kenji Shukuwa
Comment 1
2023-06-21 22:34:53 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/15180
EWS
Comment 2
2023-06-21 22:51:02 PDT
Committed
265395@main
(007a3ea80d5c): <
https://commits.webkit.org/265395@main
> Reviewed commits have been landed. Closing PR #15180 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2023-06-21 22:52:16 PDT
<
rdar://problem/111142631
>
Fujii Hironori
Comment 4
2023-06-22 13:04:56 PDT
Some tests regresses. Could you take a look? Buildbot: builder WinCairo-64-bit-Release-Tests build 1327 (
265396@main
)
https://build.webkit.org/#/builders/728/builds/1327
Regressions: Unexpected text-only failures (9) http/tests/inspector/network/resource-redirect-request-headers.html [ Failure ] http/tests/xmlhttprequest/extra-parameters.html [ Failure ] http/tests/xmlhttprequest/response-special-characters.html [ Failure ] http/tests/xmlhttprequest/status-after-abort.html [ Failure ] http/tests/xmlhttprequest/web-apps/012.html [ Failure ] http/tests/xmlhttprequest/web-apps/013.html [ Failure ] http/tests/xmlhttprequest/xmlhttprequest-missing-file-exception.html [ Failure ] http/tests/xmlhttprequest/zero-length-response-sync.html [ Failure ] http/tests/xmlhttprequest/zero-length-response.html [ Failure ]
Kenji Shukuwa
Comment 5
2023-06-22 18:58:39 PDT
(In reply to Fujii Hironori from
comment #4
)
> Some tests regresses. Could you take a look? >
Sure.
Kenji Shukuwa
Comment 6
2023-06-23 01:28:37 PDT
https://bugs.webkit.org/show_bug.cgi?id=258442
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug