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

683 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 884b91033d bug 1519869: geckodriver: fix documentation reference; r=me 2019-01-14 15:45:46 +00:00
reimu d8cfc514e4 Bug 1128997 - Support indefinite script timeout r=ato
Differential Revision: https://phabricator.services.mozilla.com/D13181

--HG--
extra : moz-landing-system : lando
2019-01-06 23:04:41 +00:00
Bastien Orivel a640e5b81f Bug 1516262 - Part 1: Update base64 and bump webdriver's version; r=ato 2019-01-02 12:13:07 +00:00
terrameijar 9f28cc669c Bug 1506611 - Fixed linter errors in testing/awsy and testing/geckodriver r=ahal
Before this change, testing/awsy had 94 errors and testing/geckodriver had 17. The errors have been resolved

Differential Revision: https://phabricator.services.mozilla.com/D14712

--HG--
extra : moz-landing-system : lando
2018-12-18 21:31:59 +00:00
Marc Fisher 7d5611d802 bug 1483996: geckodriver: add --marionette-host flag; r=ato 2018-12-07 21:38:49 +00:00
Henrik Skupin fb49499bf5 Bug 1508726 - [geckodriver] Use "app.update.disabledForTesting" to disable application updates. r=ato
Until Firefox 64 the preference "app.update.auto" controlled if updates
can be downloaded and applied. This changed in Firefox 65, and now the
preference "app.update.disabledForTesting" controls it.

Depends on D13515

Differential Revision: https://phabricator.services.mozilla.com/D13516

--HG--
extra : moz-landing-system : lando
2018-12-05 08:12:46 +00:00
Cosmin Sabou 631d5b3bc1 Backed out 2 changesets (bug 1508726) as requested by whimboo for TestMarionette.test_application_update_disabled permafails.
Backed out changeset 5c59407599f6 (bug 1508726)
Backed out changeset 766ba8a6c875 (bug 1508726)
2018-12-05 09:49:46 +02:00
Henrik Skupin ec2e5d087c Bug 1508726 - [geckodriver] Use "app.update.disabledForTesting" to disable application updates. r=ato
Until Firefox 64 the preference "app.update.auto" controlled if updates
can be downloaded and applied. This changed in Firefox 65, and now the
preference "app.update.disabledForTesting" controls it.

Depends on D13515

Differential Revision: https://phabricator.services.mozilla.com/D13516

--HG--
extra : moz-landing-system : lando
2018-12-03 15:05:36 +00:00
Henrik Skupin e29124dec1 Bug 1508670 - [geckodriver] Fix Rust code to be compatible with Rust 2018 edition. r=ato
Depends on D13399

Differential Revision: https://phabricator.services.mozilla.com/D13400

--HG--
extra : moz-landing-system : lando
2018-11-29 20:45:07 +00:00
Henrik Skupin 9a86603828 Bug 1508670 - Convert usages of try macro to ? for webdriver and geckodriver. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D13395

--HG--
extra : moz-landing-system : lando
2018-11-29 20:58:36 +00:00
Henrik Skupin ab56f42848 Bug 1509256 - Fix application update preferences for backward compatibility in Marionette and geckodriver. r=ato,bytesized
Because in Marionette the application updates cannot be turned off
via the preference "app.update.disabledForTesting" (see bug 1508726),
the preference "app.update.auto" has to be used for the time being
to control that by default no updates should be downloaded and
installed.

Even "app.update.disabledForTesting" doesn't work right now,
it might be good to leave it. It would help us in the future
so that we won't have to release new Marionette client and
geckodriver releases, if it gets supported in Firefox.

Note that this band-aid fix will only work for Firefox releases
from 57 to 64. For Firefox 65 and onwards the fix on
bug 1508726 will be needed.

Depends on D13059

Differential Revision: https://phabricator.services.mozilla.com/D13060

--HG--
extra : moz-landing-system : lando
2018-11-28 22:10:40 +00:00
Henrik Skupin 271aa30b73 Bug 1509256 - Clarify where to add preferences for geckodriver and Marionette. r=ato
It should be made clear that only those preferences should be added
to marionette.js which have an immediate effect. All others which
eg. require a restart, or have to be set before the application
starts the first time, must be added to the appropriate client's
profile generation code.

Differential Revision: https://phabricator.services.mozilla.com/D13059

--HG--
extra : moz-landing-system : lando
2018-11-27 20:12:04 +00:00
Robert Strong 728c807b83 Bug 1508283 - Don't attempt to check for updates from Firefox's nsBrowserGlue.js when running tests. r=jgraham
This adds the app.update.checkInstallTime pref with a value of false for geckodriver. The pref was added for the other tests in bug 1506917.
2018-11-19 11:30:07 -08:00
Andrea Marchesini c0950f9d8a Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins
This patch introduces 2 new prefs:
- devtools.console.stdout.chrome: if true, console API writes on stdout when
                                  used by chrome code
- devtools.console.stdout.content: console API write on stdout when used by
                                   content code.
2018-11-15 21:47:58 +01:00
Kirk Steuber 59411d310b Bug 1458308 - Remove app.update.auto and app.update.enabled from prefs.rs and marionette.js r=rstrong,ato
`app.update.auto` should actually never have been needed here. `app.update.disabledForTesting`, and before that, `app.update.enabled` will prevent updates altogether. Now that the `app.update.auto` pref is not the correct mechanism for disabling automatic update, this pref should be removed from these files.

`app.update.enabled` can also be removed from prefs.rs at this time as per the comment in the file indicating that it can be removed when Firefox 62 stabilizes.

Depends on D10315

Differential Revision: https://phabricator.services.mozilla.com/D10780

--HG--
extra : moz-landing-system : lando
2018-11-06 21:16:19 +00:00
Andreas Tolfsen d01569b0be bug 1504440: geckodriver: fix warning about peer review; r=whimboo
The warning talks about the Marionette Python client, but this
is geckodriver.

Differential Revision: https://phabricator.services.mozilla.com/D10811

--HG--
extra : moz-landing-system : lando
2018-11-05 10:26:24 +00:00
Henrik Skupin 40dd8ab3a1 Bug 1503804 - [geckodriver] Fix serialization of "Take Element Screenshot" parameters for Marionette. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D10626

--HG--
extra : moz-landing-system : lando
2018-11-05 16:42:03 +00:00
Andreas Tolfsen 956393fdb6 bug 1502864: geckodriver: support strictFileInteractability; r=jgraham
The strictFileInteractability capability is always supported by
geckodriver.

Depends on D10273

Depends on D10273

Differential Revision: https://phabricator.services.mozilla.com/D10274

--HG--
extra : moz-landing-system : lando
2018-11-03 16:31:18 +00:00
Ciure Andrei ea4e67046a Backed out 8 changesets (bug 1502864) for failing test_capabilities.py CLOSED TREE
Backed out changeset 6e4454a6f3ee (bug 1502864)
Backed out changeset 3f7ca511af8c (bug 1502864)
Backed out changeset 9382a6630231 (bug 1502864)
Backed out changeset 1eb51f6b4ba0 (bug 1502864)
Backed out changeset 2fda41394085 (bug 1502864)
Backed out changeset 0b421dd8a7d5 (bug 1502864)
Backed out changeset 9caa2f0e2e38 (bug 1502864)
Backed out changeset 7616e25a07b3 (bug 1502864)
2018-11-02 19:14:52 +02:00
Andreas Tolfsen 8c57572284 bug 1502864: geckodriver: support strictFileInteractability; r=jgraham
The strictFileInteractability capability is always supported by
geckodriver.

Depends on D10273

Differential Revision: https://phabricator.services.mozilla.com/D10274

--HG--
extra : moz-landing-system : lando
2018-11-02 14:26:02 +00:00
Andreas Tolfsen 659731e7e2 bug 1431148: geckodriver: add TakeFullScreenshot command; r=whimboo
This adds a new proprietary extension command to geckodriver for
taking a screenshot of the full document.  The new endpoint is GET
/session/{session id}/moz/screenshot/full and returns, like the
Take Screenshot and Take Element Screenshot, a Base64 encoded string.

Depends on D9419

Differential Revision: https://phabricator.services.mozilla.com/D6886

--HG--
extra : moz-landing-system : lando
2018-10-29 11:07:28 +00:00
Sebastian Hengst 1ad50182a7 merge mozilla-central to autoland
--HG--
rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json
rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md
rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml
rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs
rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs
rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs
rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs
rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs
rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs
rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs
rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs
rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs
rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs
rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs
rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs
rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs
rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs
rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs
rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs
rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs
rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs
rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs
rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs
rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs
rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs
rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs
rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs
rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs
rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs
rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs
rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs
rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs
rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs
rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs
rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs
rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs
rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs
rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
extra : rebase_source : 6c5b45c092fd51bf1b3ce15960416fb59311d152
2018-10-22 20:34:24 +03:00
Andreas Tolfsen 6bfc81ba93 bug 1500938: geckodriver: mention canonical source code location in README; r=me
DONTBUILD
2018-10-22 15:47:43 +01:00
Myk Melez 898ee70419 Bug 1500259 - update rkv to 0.5 and uuid to 0.6 r=froydnj
Updating rkv to 0.5 enables us to un-vendor new-ordered-float, as rkv 0.4 is the last crate in the tree that depends on it.

    It also enables us to un-vendor version 0.5 of uuid. We previously needed that version because multiple third-party crates depended on it, and we have limited control over third-party sub-dependencies. But rkv 0.4 was the last third-party crate that still depended on version 0.5 of uuid; rkv 0.5 depends on version 0.6 of uuid.

    There would still be two internal crates that depend on version 0.5 of uuid: geckodriver and webrender_bindings. But we have more control over internal sub-dependencies, and we can update those two internal crates to depend on version 0.6 of uuid. This patch does so.

    To summarize, this patch makes the following changes:

    * rkv: 0.4 -> 0.5
    * new-ordered-float: un-vendored
    * geckodriver: uuid dependency 0.5 -> 0.6
    * webrender_bindings: uuid dependency 0.5 -> 0.6
    * uuid 0.5: un-vendored
    * uuid 0.6: remains in tree

Differential Revision: https://phabricator.services.mozilla.com/D9160

--HG--
extra : moz-landing-system : lando
2018-10-22 16:31:40 +00:00
Henrik Skupin c0389d79a5 Bug 1494637 - [geckodriver] Remove custom serialization of JavascriptCommandParameters for Marionette. r=ato
The argument "specialPowers" is no longer used in Marionette
and as such can be removed from the serialization.

The default value for "newSandbox" in Marionette is false,
so it doesn't need to be explicitely set in geckodriver.

By removing those two properties a custom serialization
is no longer neccessary.

Depends on D7210

Differential Revision: https://phabricator.services.mozilla.com/D7211

--HG--
extra : moz-landing-system : lando
2018-10-15 20:35:33 +00:00
Andreas Tolfsen a7c654c745 bug 1425365: geckodriver: re-enable rust tests on windows; r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D8723

--HG--
extra : moz-landing-system : lando
2018-10-15 14:30:30 +00:00
Andreas Tolfsen ad4bd2ee4c bug 1497961: geckodriver: remove reference to MOZ_HEADLESS; r=me 2018-10-10 19:02:49 +01:00
Andreas Tolfsen de069c2901 bug 1497882: geckodriver: add link to perl api docs; r=me
DONTBUILD
2018-10-10 14:56:41 +01:00
Andreas Tolfsen 10d442575f bug 1496987: geckodriver: turn off arm7hf builds; r=automatedtester
The intent to turn off ARMv7 HF builds before
the geckodriver 1.0 release was announced in
https://lists.mozilla.org/pipermail/tools-marionette/2018-September/000035.html.

In order to create as few surprises as possible before 1.0, we
should turn off ARMv7 HF builds on Travis first.

Differential Revision: https://phabricator.services.mozilla.com/D7964

--HG--
extra : moz-landing-system : lando
2018-10-09 12:46:33 +00:00
Henrik Skupin cef73eeb29 Bug 1496311 - [geckodriver] Fix broken formatting of table in Support.md. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D7859

--HG--
extra : moz-landing-system : lando
2018-10-05 12:45:43 +00:00
Noemi Erli 8bb8254a13 Merge inbound to mozilla-central. a=merge 2018-10-04 07:03:25 +03:00
Andreas Tolfsen 723e4c7c08 bug 1491288: geckodriver: add 0.23.0 to list of supported versions; r=jgraham
Depends on D7302

Differential Revision: https://phabricator.services.mozilla.com/D7306

--HG--
extra : moz-landing-system : lando
2018-10-03 16:08:49 +00:00
Andreas Tolfsen e82d7312d5 bug 1491288: geckodriver: release 0.23.0; r=whimboo
Depends on D7301

Differential Revision: https://phabricator.services.mozilla.com/D7302

--HG--
extra : moz-landing-system : lando
2018-10-03 15:00:04 +00:00
Andreas Tolfsen 3ec2e106ce bug 1491288: geckodriver: update changelog; r=whimboo
Depends on D7300

Differential Revision: https://phabricator.services.mozilla.com/D7301

--HG--
extra : moz-landing-system : lando
2018-10-03 15:00:02 +00:00
Bogdan Tara 694baf8d92 Merge inbound to mozilla-central. a=merge 2018-09-30 00:55:39 +03:00
Andreas Tolfsen 3b820772e5 bug 1494613: geckodriver: convert logging::Level to Pref r=whimboo
The patch c1df1c2e46f6 contained a faulty rebase where the coercion
of logging::max_level() changed from the Pref type to a string.

The string representation of geckodriver::logging::Level is given
in upper-case, e.g. "INFO", and the Pref representation is given as
"Info" to be compatible with managing the log level from Log.jsm in Gecko.

This inadvertently caused
https://github.com/web-platform-tests/wpt/issues/12166 to reappear
in almost the same way: before the problem was that Marionette’s
frame script always included all log level entries.  This was fixed
with https://bugzilla.mozilla.org/show_bug.cgi?1482829, but then
https://bugzilla.mozilla.org/show_bug.cgi?id=1396821 broke it so
that log entries also from chrome space appeared.
2018-09-29 15:45:30 +01:00
Andreas Tolfsen e57b0ae094 bug 1494613: geckodriver: log reason for not being able to write profile r=whimboo
mozprofile gives us an error and we can forward it to the user so
we know what the underlying reason is for not being able to write
the Firefox profile.
2018-09-29 15:45:30 +01:00
Andreas Tolfsen ec705f7d75 bug 1494613: geckodriver: drop try!() macro from MarionetteHandler r=whimboo
Done automatically by running MarionetteHandler through rustfmt(1).
2018-09-29 15:45:30 +01:00
Andreas Tolfsen f69c1b7a76 bug 1494613: geckodriver: remove unnecessary owned string conversion r=whimboo
PrefValue implements From<&'static str>, and this makes the calling
code slightly nicer to look at.
2018-09-29 15:45:30 +01:00
Henrik Skupin 164c4189d5 Bug 1494637 - [geckodriver] Only serialize non null arguments for Marionette. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D7210

--HG--
extra : moz-landing-system : lando
2018-09-29 15:34:38 +00:00
Gurzau Raul 00b3974ac0 Backed out 5 changesets (bug 1494613) for failing at testing/geckodriver/src/marionette.rs
Backed out changeset 09e9cefc19ca (bug 1494613)
Backed out changeset f9f4e7c55d61 (bug 1494613)
Backed out changeset 457da8a172be (bug 1494613)
Backed out changeset 8d26a58f754e (bug 1494613)
Backed out changeset 729d8f3e1341 (bug 1494613)
2018-09-27 18:49:58 +03:00
Andreas Tolfsen a64e86917a bug 1494613: geckodriver: convert logging::Level to Pref r=whimboo
The patch c1df1c2e46f6 contained a faulty rebase where the coercion
of logging::max_level() changed from the Pref type to a string.

The string representation of geckodriver::logging::Level is given
in upper-case, e.g. "INFO", and the Pref representation is given as
"Info" to be compatible with managing the log level from Log.jsm in Gecko.

This inadvertently caused
https://github.com/web-platform-tests/wpt/issues/12166 to reappear
in almost the same way: before the problem was that Marionette’s
frame script always included all log level entries.  This was fixed
with https://bugzilla.mozilla.org/show_bug.cgi?1482829, but then
https://bugzilla.mozilla.org/show_bug.cgi?id=1396821 broke it so
that log entries also from chrome space appeared.

Depends on D7077

Differential Revision: https://phabricator.services.mozilla.com/D7078

--HG--
extra : moz-landing-system : lando
2018-09-27 13:35:12 +00:00
Andreas Tolfsen c3fce9b592 bug 1494613: geckodriver: log reason for not being able to write profile r=whimboo
mozprofile gives us an error and we can forward it to the user so
we know what the underlying reason is for not being able to write
the Firefox profile.

Depends on D7075

Differential Revision: https://phabricator.services.mozilla.com/D7076

--HG--
extra : moz-landing-system : lando
2018-09-27 13:17:16 +00:00
Andreas Tolfsen d1886a0a8b bug 1494613: geckodriver: drop try!() macro from MarionetteHandler r=whimboo
Done automatically by running MarionetteHandler through rustfmt(1).

Depends on D7074

Differential Revision: https://phabricator.services.mozilla.com/D7075

--HG--
extra : moz-landing-system : lando
2018-09-27 13:15:41 +00:00
Andreas Tolfsen 36c735b76e bug 1494613: geckodriver: remove unnecessary owned string conversion r=whimboo
PrefValue implements From<&'static str>, and this makes the calling
code slightly nicer to look at.

Differential Revision: https://phabricator.services.mozilla.com/D7074

--HG--
extra : moz-landing-system : lando
2018-09-27 13:14:51 +00:00
Henrik Skupin 36358b89ba Bug 1493149 - [geckodriver] "temporary" flag in AddonInstallParameters has to be optional. r=ato
With the Serde refactoring we have made this flag mandatory. This patch
reverts that change, and allows it to be skipped.

Differential Revision: https://phabricator.services.mozilla.com/D7050

--HG--
extra : moz-landing-system : lando
2018-09-27 08:37:29 +00:00
shindli a8d55dae12 Merge inbound to mozilla-central. a=merge 2018-09-27 00:52:12 +03:00
Kerem Kat 6d86e85fe6 bug 1453292: webdriver, geckodriver: remove elementTap command r=whimboo
Removes the non-standard /session/{session id}/element/{element
id}/tap endpoint command from geckodriver.

Differential Revision: https://phabricator.services.mozilla.com/D6879

--HG--
extra : moz-landing-system : lando
2018-09-26 09:49:03 +00:00
Andreas Tolfsen b23dc7de44 bug 1492649: geckodriver: avoid a couple of unneeded closures; r=whimboo 2018-09-25 16:02:03 +01:00
Andreas Tolfsen cd33da5dac bug 1492652: geckodriver: avoid cloning log level on init; r=jgraham
Instead of cloning we can dereference the logging level since it
derives the Copy trait.
2018-09-21 13:37:01 +01:00