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

993 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin a9b637a615 Bug 1751196 - [geckodriver] androidPackage and binary capabilities are mutual exclusive. r=webdriver-reviewers,jgraham
It's only allowed to specify a desktop binary or an
Android package to start.

Differential Revision: https://phabricator.services.mozilla.com/D137564
2022-02-03 18:56:16 +00:00
Henrik Skupin 6bcdc9dd6d Bug 1751712 - [geckodriver] Forward allowed hosts and origins for WebDriver Bidi connections. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D136872
2022-02-03 12:57:48 +00:00
Cristian Tuns 07cb601a36 Backed out changeset db30af103b55 (bug 1751196) for causing Btime failures CLOSED TREE 2022-02-02 11:12:07 -05:00
Henrik Skupin 44ab758d92 Bug 1751196 - [geckodriver] androidPackage and binary capabilities are mutual exclusive. r=webdriver-reviewers,jgraham
It's only allowed to specify a desktop binary or an
Android package to start.

Differential Revision: https://phabricator.services.mozilla.com/D137564
2022-02-02 11:41:34 +00:00
Henrik Skupin 664b062854 Bug 1753083 - [geckodriver] Remove deprecated preferences from prefs.rs. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D137560
2022-02-02 11:41:33 +00:00
Henrik Skupin b3722a5dfa Bug 1753083 - [geckodriver] Remove deprecated check for "page load" timeout (Firefox <53). r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D137559
2022-02-02 11:41:33 +00:00
Henrik Skupin f1e06ea252 Bug 1753083 - [geckodriver] Remove version check for websocketUrl capability (Firefox >=91). r=webdriver-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D137558
2022-02-02 11:41:33 +00:00
Andi-Bogdan Postelnicu 7858c79fb2 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers
Updated with rustfmt 1.4.38-stable (db9d1b2 2022-01-20)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D137148
2022-01-31 17:00:21 +00:00
James Graham f09c241a85 Bug 1421766 - Make geckodriver read marionette port from MarionetteActivePort in profile, r=webdriver-reviewers,jdescottes,whimboo
When no marionette port is explicitly specified, and the Firefox
version is >= 95, pass in a port number of 0 from geckodriver to
firefox, so that marionette binds on a free port. Then read the port
it used from the profile. This avoids the possibility of races between
geckodriver picking a free port and marionette binding to that port.

This could also be used on Android, but isn't implemented as part of
this patch.

Differential Revision: https://phabricator.services.mozilla.com/D136740
2022-01-27 10:32:17 +00:00
Mike Hommey 29c3f32ae6 Bug 1751342 - Upgrade geckodriver to clap 3. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D136569
2022-01-22 21:45:34 +00:00
Sandor Molnar cb54700827 Backed out changeset 1e5f25dc1cf8 (bug 1751342) for causing browsertime failures. CLOSED TREE 2022-01-22 05:49:37 +02:00
Mike Hommey ff96ba86a5 Bug 1751342 - Upgrade geckodriver to clap 3. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D136569
2022-01-21 21:40:20 +00:00
James Graham 61e16aed2c Bug 1732622 - Fix clippy errors, r=webdriver-reviewers,whimboo
Using cargo clippy --fix

Differential Revision: https://phabricator.services.mozilla.com/D134316
2022-01-17 15:37:20 +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 08cf541648 Bug 1732622 - Fix clippy errors, r=webdriver-reviewers,whimboo
Using cargo clippy --fix

Differential Revision: https://phabricator.services.mozilla.com/D134316
2022-01-17 14:02:26 +00: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
James Graham 3d92bd280b Bug 1748845 - Fix geckodriver docs links, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D135380
2022-01-11 10:48:19 +00:00
James Graham d113e046c3 Bug 1652612 - Add CVE to release notes, r=whimboo,freddyb,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D134272
2021-12-20 11:13:24 +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
Mike Hommey 848a31c4e7 Bug 1737196 - Remove semicolon in rust macro. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D129225
2021-10-22 20:33:53 +00:00
James Graham ed590c7b4e Bug 1736991 - Fix clippy warnings in geckodriver crate, r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129130
2021-10-22 11:46:31 +00:00
Henrik Skupin 591d2d39b9 Bug 1301073 - [geckodriver] Don't send "name" argument for "WebDriver:SwitchToWindow" to Marionette. r=webdriver-reviewers,jgraham
Starting with geckodriver 0.25.0 the "handle" argument (available
since Firefox 67) for the "WebDriver:SwitchToWindow" call to
Marionette has been added. Since then the "name" argument in
Marionette has been removed (Firefox 80).

That means sending "name" is no longer necessary, and can be
removed. By doing that the minimum supported Firefox version
will be bumped to Firefox 80.0.

Differential Revision: https://phabricator.services.mozilla.com/D88958
2021-10-18 18:44:07 +00:00
Henrik Skupin cc4005cfd2 Bug 1732622 - [geckodriver] Update release notes for host check regression. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D128750
2021-10-18 18:32:04 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Butkovits Atila c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Alex Lopez fe61e94ec8 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-20 20:21:07 +00:00
Noemi Erli 91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
Alex Lopez bf860fe7dc Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-17 19:00:39 +00:00
Henrik Skupin 935fa9e478 Bug 1686110 - [geckodriver] Update changeset and release date for the 0.30.0 release. r=webdriver-reviewers,jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D125265
2021-09-16 11:10:58 +00:00
Henrik Skupin 993fe79709 Bug 1686110 - [geckodriver] Improve releasing documentation. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D125264
2021-09-15 19:22:55 +00:00
Henrik Skupin 680793f2d5 Bug 1686110 - [geckodriver] Release version 0.30.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D125263
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
Andi-Bogdan Postelnicu 92603d5088 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,valentin
Updated with rustfmt 1.4.37-stable (a178d03 2021-07-26)

Differential Revision: https://phabricator.services.mozilla.com/D122815
2021-08-23 09:30:24 +00:00
Andrei Oprea dae1779589 Bug 1725131 - Remove messaging system code related to the Bookmark panel r=pdahiya,Mardak,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122342
2021-08-19 13:17:13 +00:00
Henrik Skupin 7e765eacd4 Bug 1723451 - [geckodriver] Use larger Marionette handshake timeout to not fail for slow connections. r=webdriver-reviewers,jgraham,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121563
2021-08-12 10:36:53 +00:00
James Graham db748582c7 Bug 1652612 - Only allow starting geckodriver bound to loopback ip, r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D120388
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
Henrik Skupin 4445236edc Bug 1708633 - [geckodriver] Forward WebSocket connection for Firefox on Android. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D120946
2021-07-29 08:57:25 +00:00
Henrik Skupin b63d150304 Bug 1721447 - [geckodriver] Use application arguments from moz:firefoxOptions to start Firefox on Android. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D120380
2021-07-29 08:57:24 +00:00
Barret Rennie de403d5666 Bug 1610629 - Use unix_path::Path/PathBuf in mozdevice for Android paths r=whimboo,webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D120377
2021-07-28 00:02:40 +00:00
Henrik Skupin 2fab354277 Bug 1721797 - [geckodriver] Remove test root folder when AndroidHandler gets dropped. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D120614
2021-07-22 19:20:02 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Julian Descottes dba554e505 Bug 1719667 - [remote] Do not set recommended preferences when not wanted r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119409
2021-07-09 08:42:47 +00:00
Henrik Skupin 7f30731ce8 Bug 1719254 - [geckodriver] Remove "webdriver.log.level" preference in favor of "remote.log.level". r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D119169
2021-07-08 08:12:54 +00:00