Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1169290] Add navigator.webdriver attribute. #9482

Merged
merged 1 commit into from Feb 16, 2018

Conversation

Projects
None yet
4 participants
@moz-wptsync-bot
Copy link
Collaborator

moz-wptsync-bot commented Feb 12, 2018

This patch adds an enumerable, configurable, readonly attribute
"webdriver" to the Navigator object. The attribute is true when the
-marionette flag has been passed to Firefox or the marionette.enabled
preference is true. Otherwise it is false.

The definition of the interface is found in the WebDriver standard:

https://w3c.github.io/webdriver/webdriver-spec.html#interface

The navigator.webdriver attribute is meant as an indication to web
authors that a document is visited by WebDriver. It is important
to stress that it is not meant as a fool-proof way to detect that
a website is being visited by a browser automation tool, but as a
tool for web documents to take alternate code paths.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1169290
gecko-commit: 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0
gecko-integration-branch: autoland
gecko-reviewers: bz, maja_zf

Add navigator.webdriver attribute.
This patch adds an enumerable, configurable, readonly attribute
"webdriver" to the Navigator object.  The attribute is true when the
-marionette flag has been passed to Firefox or the marionette.enabled
preference is true.  Otherwise it is false.

The definition of the interface is found in the WebDriver standard:

	https://w3c.github.io/webdriver/webdriver-spec.html#interface

The navigator.webdriver attribute is meant as an indication to web
authors that a document is visited by WebDriver.  It is important
to stress that it is not meant as a fool-proof way to detect that
a website is being visited by a browser automation tool, but as a
tool for web documents to take alternate code paths.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1169290
gecko-commit: 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0
gecko-integration-branch: autoland
gecko-reviewers: bz, maja_zf
@wpt-pr-bot
Copy link
Collaborator

wpt-pr-bot left a comment

Already reviewed downstream.

@w3c-bots

This comment has been minimized.

Copy link

w3c-bots commented Feb 12, 2018

Build PASSED

Started: 2018-02-12 16:45:22
Finished: 2018-02-12 16:54:20

Failing Jobs

  • chrome:dev
  • safari:11.0
  • MicrosoftEdge:16.16299

View more information about this build on:

@moz-wptsync-bot moz-wptsync-bot merged commit 0086900 into master Feb 16, 2018

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
upstream/gecko Landed on mozilla-central
Details

@sideshowbarker sideshowbarker deleted the sync/upstream/open/1169290 branch Nov 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.