[Webkit-unassigned] [Bug 177127] New: WebDriver: wrong response in case of errors

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 19 02:04:24 PDT 2017


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

            Bug ID: 177127
           Summary: WebDriver: wrong response in case of errors
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bburg at apple.com

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.

-- 
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/20170919/12803f81/attachment.html>


More information about the webkit-unassigned mailing list