WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177127
WebDriver: wrong response in case of errors
https://bugs.webkit.org/show_bug.cgi?id=177127
Summary
WebDriver: wrong response in case of errors
Carlos Garcia Campos
Reported
2017-09-19 02:04:24 PDT
I misunderstood the spec when I implemented this, so we either return a "value" key with the result in case of success or the error object as the body in case of error. We should always add a "value" key to the body and set it with either the result or the error object.
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-send-an-error
Last step is "send a response", which is the same as when there's no error.
Attachments
Patch
(3.80 KB, patch)
2017-09-19 02:15 PDT
,
Carlos Garcia Campos
bburg
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-09-19 02:15:41 PDT
Created
attachment 321190
[details]
Patch
Blaze Burg
Comment 2
2017-09-19 08:46:12 PDT
Comment on
attachment 321190
[details]
Patch r=me
Carlos Garcia Campos
Comment 3
2017-09-19 23:29:27 PDT
Committed
r222255
: <
http://trac.webkit.org/changeset/222255
>
Radar WebKit Bug Importer
Comment 4
2017-09-27 12:23:56 PDT
<
rdar://problem/34693192
>
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