[Webkit-unassigned] [Bug 171997] 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:25:33 PDT 2017


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

--- Comment #2 from Brian Burg <bburg at apple.com> ---
(In reply to Sergey Shekyan from comment #0)
> 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.

Patches welcome.

As far as I know, nobody ships a W3C-compatible WebDriver implementation based on WebKit, but this shouldn't stop you from making this particular piece better.

-- 
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/a28bada1/attachment.html>


More information about the webkit-unassigned mailing list