[Webkit-unassigned] [Bug 171997] New: navigator.webdriver should return false if the page is not controlled by automation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 11 16:11:25 PDT 2017


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

            Bug ID: 171997
           Summary: navigator.webdriver should return false if the page is
                    not controlled by automation
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shekyan at gmail.com
                CC: cdumez at apple.com

WebDriver specification defines (https://www.w3.org/TR/webdriver/#interface) webdriver IDL attribute for navigator as boolean. If session is controlled by automation, getter in current implementation returns undefined.

Considering that property descriptor is unconditionally defined on navigator prototype [Object.getOwnPropertyDescriptor(navigator.__proto__, "webdriver")], I believe it should return false if session is not controlled by automation.

I'll be happy to submit a patch if change seems reasonable.

-- 
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/20170511/233eb557/attachment.html>


More information about the webkit-unassigned mailing list