WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 179918
WebDriver: do not try to parse http body if method is not POST
https://bugs.webkit.org/show_bug.cgi?id=179918
Summary
WebDriver: do not try to parse http body if method is not POST
Carlos Garcia Campos
Reported
2017-11-21 05:26:32 PST
As said in the spec: 5. If request’s method is POST: 1. Let parse result be the result of parsing as JSON with request’s body as the argument. If this process throws an exception, return an error with error code invalid argument and jump back to step 1 in this overall algorithm. 2. If parse result is not an Object, send an error with error code invalid argument and jump back to step 1 in this overall algorithm. Otherwise, let parameters be parse result. Otherwise, let parameters be null. 6.3 Processing Model
https://w3c.github.io/webdriver/webdriver-spec.html#processing-model
Now, w3c tests are sending null as body of delete session command (it used to be just empty), making it fail with invalid argument.
Attachments
Patch
(4.65 KB, patch)
2017-11-21 05:30 PST
,
Carlos Garcia Campos
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-11-21 05:30:03 PST
Created
attachment 327403
[details]
Patch
Carlos Garcia Campos
Comment 2
2017-11-21 08:56:54 PST
Committed
r225083
: <
https://trac.webkit.org/changeset/225083
>
Radar WebKit Bug Importer
Comment 3
2017-11-21 08:57:17 PST
<
rdar://problem/35658285
>
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