Граф коммитов

359 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 48aa430e34 Bug 1776264 - [webdriver] Release version 0.46.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D150227
2022-06-27 20:17:22 +00:00
criss f8e7b53ea7 Backed out changeset b5a663fb2ffd (bug 1776264) for causing lint failure. CLOSED TREE 2022-06-24 14:39:19 +03:00
Henrik Skupin 0a208e33f2 Bug 1776264 - [webdriver] Release version 0.46.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D150227
2022-06-24 10:25:27 +00:00
James Graham 13ffa95348 Bug 1773265 - Update pointer input support in webdriver crate, r=webdriver-reviewers,whimboo
Add all the additional pointer properties defined in spec to the
webdriver crate so they can be used by clients when supported by the
browser.

Differential Revision: https://phabricator.services.mozilla.com/D144813
2022-06-13 09:03:34 +00:00
Cosmin Sabou a8fe62db96 Backed out 2 changesets (bug 1773265, bug 1773264) for causing wpt mouse-pointer related failures.
Backed out changeset a4dd1e07fbf5 (bug 1773265)
Backed out changeset 96fbfb8cd08a (bug 1773264)
2022-06-09 18:57:30 +03:00
James Graham 1bf65f3431 Bug 1773265 - Update pointer input support in webdriver crate, r=webdriver-reviewers,whimboo
Add all the additional pointer properties defined in spec to the
webdriver crate so they can be used by clients when supported by the
browser.

Differential Revision: https://phabricator.services.mozilla.com/D144813
2022-06-09 12:55:28 +00:00
Mike Hommey 57c2d48e4f Bug 1772960 - Upgrade geckodriver to base64 0.13. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148460
2022-06-07 09:26:16 +00:00
Mike Hommey 2c04e6fab8 Bug 1710421 - Bustage fix. CLOSED TREE 2022-06-02 01:57:01 +03:00
Mike Hommey 46156fb100 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 22:05:53 +00:00
Mike Hommey 709d91019f Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 22:05:53 +00:00
Marian-Vasile Laza 03a1ff18e4 Backed out 6 changesets (bug 1772068, bug 1710421) for causing multiple web-platform failures. CLOSED TREE
Backed out changeset 7dc183461431 (bug 1772068)
Backed out changeset 437682fe4871 (bug 1772068)
Backed out changeset 717912ea0672 (bug 1772068)
Backed out changeset 6790f990c322 (bug 1772068)
Backed out changeset 33831638ba99 (bug 1710421)
Backed out changeset b35aaa56fa54 (bug 1710421)
2022-06-01 15:01:10 +03:00
Mike Hommey d50e4bf7f4 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 09:57:13 +00:00
Mike Hommey 477fbb9ce7 Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 09:57:13 +00:00
Marian-Vasile Laza 5d7edc0d2e Backed out 2 changesets (bug 1710421) for causing web-platform failures on context.rs. CLOSED TREE
Backed out changeset bdd6f29ebeeb (bug 1710421)
Backed out changeset 1739da34411f (bug 1710421)
2022-06-01 10:34:41 +03:00
Mike Hommey 2bfc571ce5 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 06:44:07 +00:00
Mike Hommey 2edc1ca2ed Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 06:44:06 +00:00
Henrik Skupin 4e3b89617b Bug 1723202 - [webdriver] Release version 0.45.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D142979
2022-04-06 08:58:36 +00:00
Henrik Skupin 69827cd1f6 Bug 1755312 - [geckodriver] Clippy and rustfmt fixes. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D141453
2022-03-25 12:18:18 +00:00
Iulian Moraru a3123f6bf6 Backed out 2 changesets (bug 1755312) for causing wd failures on marionette_port.py. CLOSED TREE
Backed out changeset 6c795bd3f3d4 (bug 1755312)
Backed out changeset 4bb6093b4db3 (bug 1755312)
2022-03-22 18:14:51 +02:00
Henrik Skupin 33fcda833e Bug 1755312 - [geckodriver] Clippy and rustfmt fixes. r=webdriver-reviewers,jgraham
Depends on D141358

Differential Revision: https://phabricator.services.mozilla.com/D141453
2022-03-22 12:33:47 +00:00
James Graham b2d688e913 Bug 1732622 - Enable allowing given hosts and origins for geckodriver, r=webdriver-reviewers,freddyb,whimboo
The policy is now as follows:

* The `--host` command line flag can now be an actual hostname as well
  as in IP address.

* By default only requests with a `Host` header that is an IP address,
  or matching the value of the `--host` argument are accepted.

* If `--host` is a local IP address, we by default accept `localhost`
  in the `Host` header.

* When `--allow-hosts` is provided, only requests with a hostname
  matching the listed values, or an IP address, are accepted.

* By default any request with an `Origin` header is rejected.

* When `--allow-origins` is provided, only requests with no `Origin`
  header, or an origin matching the given values, are accepted.

Differential Revision: https://phabricator.services.mozilla.com/D129012
2022-01-17 15:37:20 +00:00
Marian-Vasile Laza 3f700a2540 Backed out 3 changesets (bug 1732622) for causing build bustages on server.rs. CLOSED TREE
Backed out changeset ab9d1e14386a (bug 1732622)
Backed out changeset 577a5b37f781 (bug 1732622)
Backed out changeset 46f1fb7f6fc0 (bug 1732622)
2022-01-17 16:38:26 +02:00
James Graham 03a290a1a9 Bug 1732622 - Enable allowing given hosts and origins for geckodriver, r=webdriver-reviewers,freddyb,whimboo
The policy is now as follows:

* The `--host` command line flag can now be an actual hostname as well
  as in IP address.

* By default only requests with a `Host` header that is an IP address,
  or matching the value of the `--host` argument are accepted.

* If `--host` is a local IP address, we by default accept `localhost`
  in the `Host` header.

* When `--allow-hosts` is provided, only requests with a hostname
  matching the listed values, or an IP address, are accepted.

* By default any request with an `Origin` header is rejected.

* When `--allow-origins` is provided, only requests with no `Origin`
  header, or an origin matching the given values, are accepted.

Differential Revision: https://phabricator.services.mozilla.com/D129012
2022-01-17 14:02:26 +00:00
David Burns 4ef99ace6a Bug 1700093 - [geckodriver] Add support for "Get Element Shadow Root" r=webdriver-reviewers,whimboo,jgraham
This adds the support for "Get Element Shadow Root" from the WebDriver specification:
https://w3c.github.io/webdriver/#get-element-shadow-root

Differential Revision: https://phabricator.services.mozilla.com/D110938
2021-12-03 14:02:21 +00:00
James Graham 6e505261a3 Bug 1736991 - Fix clippy warnings in webdriver crate, r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129129
2021-10-22 11:46:31 +00:00
Henrik Skupin 0ae79d5a03 Bug 1686110 - [webdriver] Release version 0.44.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D125262
2021-09-15 19:22:54 +00:00
Henrik Skupin f2bb39df37 Bug 1729280 - Fix links to WebDriver mailing list. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D125455
2021-09-14 08:37:55 +00:00
Henrik Skupin 7f5bca14c6 Bug 1729280 - Fix links to WebDriver chat. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D125454
2021-09-14 08:37:54 +00:00
James Graham 158ea02bba Bug 1652612 - More explictly only allow connections from local origins, r=whimboo,webdriver-reviewers
If an origin header is supplied with the request, validate it
corresponds to a service running on localhost.

Differential Revision: https://phabricator.services.mozilla.com/D120387
2021-07-29 19:34:08 +00:00
James Graham 871fb42930 Bug 1652612 - Validate the Host header when starting GeckoDriver sessions, , freddy r=webdriver-reviewers,whimboo
Check that the Host header is set and that the host and port are local
or match the address that the WebDriver server is running on.

Differential Revision: https://phabricator.services.mozilla.com/D83499
2021-07-29 19:34:07 +00:00
Andi-Bogdan Postelnicu d844b7a2dd Bug 1617369 - Reformat recent rust changes with rustfmt r=necko-reviewers,webdriver-reviewers,kvark
Updated with rustfmt 1.4.36-stable (7de6968 2021-02-07)

Differential Revision: https://phabricator.services.mozilla.com/D117906
2021-06-17 11:00:22 +00:00
Henrik Skupin b72f22094f Bug 1693004 - [geckodriver] Add support for the "webSocketUrl" capability. r=webdriver-reviewers,jgraham
The "webSocketUrl" capability offers an opt-in
mechanism for WebDriver HTTP implementations to
make use of WebDriver BiDi, the bi-directional
protocol based on a WebSocket connection.

If the used version of Firefox has support for
WebDriver BiDi enabled, and the capability is
set to "true", it will be returned as part of
the "New Session" capabilities and contains
the host and port of the WebSocket server.

Differential Revision: https://phabricator.services.mozilla.com/D116689
2021-06-09 18:15:11 +00:00
James Graham 6d2acef1e8 Bug 1715209 - [geckodriver] Fix handling of implicit session delete return value. r=webdriver-reviewers,whimboo
The arguments to map_or_else were the wrong way around. Since it's easier to read in this case
switch over to an explicit match statement.

Differential Revision: https://phabricator.services.mozilla.com/D117155
2021-06-08 19:26:50 +00:00
James Graham 0e4d383ed3 Bug 1443520 - Move session deletion on teardown into webdriver lib, r=webdriver-reviewers,whimboo
Currently we have a `delete_session` function in
webdriver::server::Dispatcher which is called either when the session
has been cleanly deleted with a delete session method, or when we want
the session to be deleted. But all that method actually does is call
into WebDriverHander::delete_session, which then has to decide whether
to initiate a clean shutdown and then do any impl-specific shutdown
steps (close the connection in the case of geckodriver).

The whole setup is easier to understand if we make
webdriver::server::Dispatcher resposible for ensuring that the session
has been deleted by the time we notify the handler. We rename
`delete_session` `teardown_session` to reflect the fact that the
session may already have been deleted. This takes a single parameter,
a `SessionTeardownKind`, which indicates whether the session was
already deleted or not. In case there is a session, but it wasn't
deleted, `teardown_session` will attempt to send a `DeleteSession`
message.

On the handler side the `teardown_session` method which replaces
delete session gets a `SessionTeardownKind` that reflects whether we
ever handled a DeleteSession response, either from an explict user
request or from the implicit message sent by the dispatcher. In
geckodriver we use this to decide whether to wait for the browser to
close by itself before signalling it.

This fixes several issues; a regression in which we were waiting for
the browser to shut down when we shouldn't, and an issue where we were
sending too many delete session messages in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D116886
2021-06-07 11:25:23 +00:00
James Graham 0427ce5318 Bug 1713935 - Make testing/webdriver/ pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116594
2021-06-02 20:29:52 +00:00
Henrik Skupin 9d8a929736 Bug 1700557 - [webdriver] Release version 0.43.1. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D111158
2021-04-08 11:38:20 +00:00
Sylvestre Ledru d4d28b7263 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.4.18-stable (8157a3f 2020-07-15)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100935
2021-01-16 15:36:39 +00:00
Henrik Skupin bd6a1fdab2 Bug 1668243 - [webdriver] Release version 0.43.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D101591
2021-01-13 16:42:09 +00:00
James Graham b03c8f7cf5 Bug 1684226 - Make WebDriver server a feature, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D101184
2021-01-11 17:52:07 +00:00
Sylvestre Ledru 691f01a663 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,jgraham
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D97397
2020-11-19 12:00:28 +00:00
Sylvestre Ledru c0f6fe8caf Bug 1562642 - Add missing license headers r=mhoye,marionette-reviewers,webdriver-reviewers,perftest-reviewers,tarek
Differential Revision: https://phabricator.services.mozilla.com/D97138
2020-11-17 02:06:54 +00:00
Henrik Skupin 9bcfe67ea4 Bug 1649094 - [webdriver] Release version 0.42.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D95072
2020-11-03 03:51:29 +00:00
James Graham ff671615a2 Bug 1656014 - Remove PartialEq bound on WebDriverExtensionCommand, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D87860
2020-08-21 13:39:29 +00:00
James Graham ec4755c492 Bug 1648964 - Return proper error when the server starts, r=freddyb,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D81574
2020-07-27 22:05:20 +00:00
James Graham b1f117d772 Bug 1648964 - Improve Origin header handling, r=freddyb,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D81534
2020-07-27 22:05:18 +00:00
James Graham 0537cb64fd Bug 1648964 - Improve content-type header handling, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D81533
2020-07-27 22:05:17 +00:00
James Graham f49a6ca609 Bug 1648964 - Always check for Firefox when creating WebDriver session, r=webdriver-reviewers,whimboo,maja_zf
When creating a Firefox session with a custom binary, ensure that it
either has a valid application ini file or a valid version string when
run with --version.

Differential Revision: https://phabricator.services.mozilla.com/D81531
2020-07-28 12:51:04 +00:00
Brindusan Cristian 2168dfaac8 Backed out 5 changesets (bug 1648964) for android browsertime failures. CLOSED TREE
Backed out changeset 3923416a7d52 (bug 1648964)
Backed out changeset 804efa2fb56a (bug 1648964)
Backed out changeset b6f952ac6b52 (bug 1648964)
Backed out changeset 9eac3ed0ff02 (bug 1648964)
Backed out changeset fbf341f98824 (bug 1648964)
2020-07-27 21:20:12 +03:00
Henrik Skupin 607ff41a86 Bug 1584911 - [webdriver] Release version 0.41.0. r=webdriver-reviewers,jgraham
Depends on D81905

Differential Revision: https://phabricator.services.mozilla.com/D81906
2020-07-02 08:24:30 +00:00
James Graham 379015d37e Bug 1648964 - Return proper error when the server starts, r=freddyb,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D81574
2020-07-27 13:10:47 +00:00