Bug 177127

Summary: WebDriver: wrong response in case of errors
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch bburg: review+

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+
Carlos Garcia Campos
Comment 1 2017-09-19 02:15:41 PDT
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
Radar WebKit Bug Importer
Comment 4 2017-09-27 12:23:56 PDT
Note You need to log in before you can comment on or make changes to this bug.