[Webkit-unassigned] [Bug 179918] New: WebDriver: do not try to parse http body if method is not POST

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 21 05:26:32 PST 2017


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

            Bug ID: 179918
           Summary: WebDriver: do not try to parse http body if method is
                    not POST
           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

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.

-- 
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/20171121/89d9bf93/attachment.html>


More information about the webkit-unassigned mailing list