[Webkit-unassigned] [Bug 180350] New: WebDriver: evaluateJavaScriptFunction should return null when return value is undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 4 04:21:12 PST 2017


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

            Bug ID: 180350
           Summary: WebDriver: evaluateJavaScriptFunction should return
                    null when return value is undefined
           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

undefined can't be converted to JSON string, in which case JSON.stringify() returns undefined and we handle that case to return an empty string. We currently handle this case for execute script commands, but not in all other cases where we use evaluateJavaScriptFunction. It would be simpler if evaluateJavaScriptFunction returned null, because in that case we wouldn't need to handle it as a special case.

15.2 Executing Script
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-json-clone

-- 
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/20171204/92820c94/attachment-0001.html>


More information about the webkit-unassigned mailing list