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

608 Коммитов

Автор SHA1 Сообщение Дата
Bastien Orivel 963e21bf7f Bug 1484462 - Update webdriver to hyper 0.12. r=ato 2018-08-23 13:15:22 +01:00
Andreas Tolfsen a4bf4db586 Bug 1484941 - Change ErrorStatus::{ScriptTimeout,Timeout} HTTP codes from 408 to 500. r=whimboo
Whilst it is logically correct to use 408 for the
ErrorStatus::ScriptTimeout and ::Timeout errors, it
causes a collision with HTTP semantics implement in HTTP clients.
To support Keep-Alive we allow retries in HTTP clients and if a
client sees code 408 it thinks that the server has gone away and
retries the request.

This causes WebDriverCommand::ExecuteScript, ::Get, and ::Refresh
commands to be sent twice with some HTTP clients.

This is a backwards incompatible change to WebDriver in order to
not break HTTP/1.1 Keep-Alive.
2018-08-23 11:48:24 +01:00
Henrik Skupin a654712c9c Bug 1396821 - [geckodriver] Apply rustfmt other geckodriver modules. r=ato
MozReview-Commit-ID: IW15TkjVeLT

--HG--
extra : rebase_source : 0e8d053262855b3b7f897f998ef069f57f3568d2
2018-08-22 10:28:07 +02:00
Henrik Skupin dbe7ef467d Bug 1396821 - [geckodriver] Switch geckodriver crate from rustc_serialize to serde. r=ato
The patch switches the serialization and deserialization of data
structures from the rustc_serialize crate to serde. By doing that
all the custom code for serialization and deserialization can be
removed in favor of serde's automatically derived serializers and
deserializers.

MozReview-Commit-ID: B8H3bZQKkJ7

--HG--
extra : rebase_source : 9f6a18d1f3be15237133ce7e9b0bd7f0d8126429
2018-08-22 10:27:35 +02:00
Andreea Pavel 0bcfe81a06 Backed out 6 changesets (bug 1396821) for linux tier2 build bustages on a CLOSED TREE
Backed out changeset 2fa2975f97e3 (bug 1396821)
Backed out changeset c5895db52483 (bug 1396821)
Backed out changeset 5c0ddd45f926 (bug 1396821)
Backed out changeset 7c97853a85b9 (bug 1396821)
Backed out changeset b61ce753f01e (bug 1396821)
Backed out changeset 7ef3912feb2c (bug 1396821)

--HG--
rename : third_party/rust/serde_json/LICENSE-APACHE => third_party/rust/rustc-serialize/LICENSE-APACHE
rename : third_party/rust/serde_json/LICENSE-MIT => third_party/rust/rustc-serialize/LICENSE-MIT
2018-08-21 20:20:24 +03:00
Henrik Skupin 1fc0887dc1 Bug 1396821 - [geckodriver] Apply rustfmt other geckodriver modules. r=ato
MozReview-Commit-ID: IW15TkjVeLT

--HG--
extra : rebase_source : 12f26d848d34f979a696191eb2fe1eeb8835019b
2018-08-20 16:36:27 +02:00
Henrik Skupin 35d04474d0 Bug 1396821 - [geckodriver] Switch geckodriver crate from rustc_serialize to serde. r=ato
MozReview-Commit-ID: B8H3bZQKkJ7

--HG--
extra : rebase_source : 17b5a8caad6bfed2bc83d333438476f75f3850c3
2018-08-20 17:43:25 +02:00
Henrik Skupin 3af25764b7 Bug 1484909 - [geckodriver] Return "invalid session id" error when there is no active session.
If a command is used before creating a new session, an
"invalid session id" error has to be returned by the
driver.

--HG--
extra : rebase_source : c45f33e9e39d876f5fd77561b57ab1fe664452d1
2018-08-21 09:08:36 +02:00
Andreas Tolfsen 719b4c5e30 Bug 1482829 - Track Marionette logger verbosity with Log#manageLevelFromPref. r=whimboo
This patch adopts Logger#managerLevelFromPref from Log.jsm to set
and keep track of the Marionette logger's verbosity.

This has the advantage that we do not have to roll separate
implementations of Log for the child- and parent processes.  It also
has the upside that the log level will be reflected when changed
at runtime through the use of an observer.
2018-08-17 12:55:33 +01:00
Andreas Tolfsen 658ee95d04 Bug 1482829 - Convert logging::Level into mozprofile::preferences::Pref. r=whimboo
In order to facilitate the use of Log.jsm's Logger#manageLevelFromPref,
geckodriver needs to ensure that the input value for the
marionette.log.level preference conforms to the variants in the
Log.Level enum.

This patch implements the Into<T> conversion from geckodriver's
logging::Level into mozprofile::preferences::Pref by way of a new
function to_gecko(), that ensures the preference value is correctly
formatted.

Logger#manageLevelFromPref expects a string value such as "Info",
which exactly matches Log.Level's own properties.  It is in other
words case sensitive, and this ensures that Marionette no longer
has to case convert the input data.
2018-08-17 12:55:31 +01:00
Andreas Tolfsen 1b22ea64c9 Bug 1483805 - Update links to tools-marionette@ archive. r=me 2018-08-16 10:48:33 +01:00
Andreas Tolfsen 59aa4235d1 Bug 1483288 - Avoid "as i64" coercion of marionette.port pref value. r=whimboo 2018-08-15 15:49:18 +01:00
Myk Melez 2c2b6eebf9 Bug 1445451 - vendor rkv; r=froydnj
MozReview-Commit-ID: KbcADpNltYq

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

--HG--
rename : third_party/rust/synstructure/.cargo-checksum.json => third_party/rust/synstructure-0.8.1/.cargo-checksum.json
rename : third_party/rust/synstructure/Cargo.toml => third_party/rust/synstructure-0.8.1/Cargo.toml
rename : third_party/rust/synstructure/README.md => third_party/rust/synstructure-0.8.1/README.md
rename : third_party/rust/synstructure/src/lib.rs => third_party/rust/synstructure-0.8.1/src/lib.rs
rename : third_party/rust/synstructure/src/macros.rs => third_party/rust/synstructure-0.8.1/src/macros.rs
extra : moz-landing-system : lando
2018-08-09 19:42:17 +00:00
Daniel Varga edef4f17d4 Backed out changeset 08fa47a24e89 (bug 1445451) for failing Btup 2018-08-09 02:20:25 +03:00
Myk Melez 2d46903ee1 Bug 1445451 - vendor rkv r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D2246

--HG--
rename : third_party/rust/synstructure/.cargo-checksum.json => third_party/rust/synstructure-0.8.1/.cargo-checksum.json
rename : third_party/rust/synstructure/Cargo.toml => third_party/rust/synstructure-0.8.1/Cargo.toml
rename : third_party/rust/synstructure/README.md => third_party/rust/synstructure-0.8.1/README.md
rename : third_party/rust/synstructure/src/lib.rs => third_party/rust/synstructure-0.8.1/src/lib.rs
rename : third_party/rust/synstructure/src/macros.rs => third_party/rust/synstructure-0.8.1/src/macros.rs
extra : moz-landing-system : lando
2018-08-08 20:59:21 +00:00
Andreas Tolfsen 015c30f932 Bug 1470659 - Add setWindowRect capability to geckodriver. r=automatedtester
It will never be possible to configure setWindowRect, and trying
to do so will cause geckodriver to return with an error.
2018-08-01 18:31:25 +01:00
Andreas Tolfsen 9fe71ae6f7 Bug 1479774 - Drop mozreview references from geckodriver docs. r=me
DONTBUILD
2018-07-31 15:10:57 +01:00
Ted Mielczarek ce290f24b1 bug 1409276 - disable warnings-as-errors for Rust libraries/programs. r=chmanchester
When compiling C/C++ sources via Rust build scripts there's no point in
enabling warnings-as-errors as all such code is third-party code.

MozReview-Commit-ID: 5pGH6w9ZE2I

--HG--
extra : rebase_source : ad36be6aed39d55055728f85b799adf5f0cf0f4b
2018-07-16 13:52:14 -04:00
Andreas Tolfsen 69211f9f5e Bug 1477475 - Drop legacy Marionette capabilities duplication. r=whimboo
geckodriver currently writes a legacy capabilities structure to the
WebDriver:NewSession command it uses on creating a new WebDriver
session which duplicates the top-level object:

	{capabilities: {<caps>, desiredCapabilities: <caps>}}

Where caps can look something like:

	{acceptInsecureCerts: true, pageLoadStrategy: "normal", ...}

Marionette has picked up the top-level "capabilities" key for a
very long time now, and there is no longer any need to duplicate
the body.
2018-07-25 14:06:39 +01:00
Andreas Tolfsen 90420084c3 Bug 1477476 - Drop geckodriver check for malformed sessionId from Marionette. r=automatedtester
Marionette used to return a session UUID starting with "{" and
ending with "}" from the uuid-generator in Gecko.  It has not done
this for a very long time rendering this geckodriver check needless.
2018-07-24 14:08:55 +01:00
Andreas Tolfsen 565f257e32 Bug 1477474 - Return moz:geckodriverVersion on session creation. r=automatedtester
This introduces a new extension capability, moz:geckodriverVersion, that
will be returned on session creation with the geckodriver version number.
2018-07-24 14:07:48 +01:00
Andreas Tolfsen 6c5f321c8e Bug 1477474 - Stop logging geckodriver version on startup. r=automatedtester
Any info-level log entries emitted before session creation will
not be subject to the requested log level from moz:firefoxOptions.
This can confuse users, so instead of logging the geckodriver
version number on starting the program, we can return it later
during session creation as an extension capability.

Additionally this patch reduces the log level of the port geckodriver
listens to from info to debug for similar reasons.
2018-07-24 14:07:48 +01:00
Andreas Tolfsen b8e252394c Bug 1477483 - Use monospace on pageLoadStrategy default value in geckodriver README. r=me
DONTBUILD
2018-07-21 14:30:59 +01:00
Andreas Tolfsen 5833c61074 Bug 1477300 - Avoid linking to MDN from geckodriver README. r=me
DONTBUILD
2018-07-20 17:16:36 +01:00
Andreas Tolfsen dee21345de Bug 1477300 - Correct mention on Selenium version number. r=me
DONTBUILD
2018-07-20 17:16:35 +01:00
Andreas Tolfsen ca01d91580 Bug 1477300 - Fix broken links in geckodriver README. r=me
DONTBUILD
2018-07-20 17:16:35 +01:00
Kirk Steuber da107c225e Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : ba135c7d285987fd030fef4e18a5aa701a43cdba
extra : intermediate-source : e6c89a0ff0c7a7e7cd1c028e49660bab0416a531
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Andreea Pavel 1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber 35d8c30dbb Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : e38cf587711192c3020cd9ac6a39cdbd97d2600b
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Henrik Skupin 2a40175bd7 Bug 1473341 - [geckodriver] Run webdriver Rust tests on Taskcluster. r=ato
The webdriver crate which is used by geckodriver has a path
dependency set. As such it needs to be run as part of the
geckodriver tests.

MozReview-Commit-ID: AAo9oLYapWp

--HG--
extra : rebase_source : 4bc926d4ec54a836b78b39b8d46429788918e62f
2018-07-03 19:26:41 +02:00
Andreas Tolfsen 2ab7cea9a2 Bug 1473054 - Add run and testing instructions for geckodriver. r=me
MozReview-Commit-ID: 8qxqqKXCV3E
2018-07-04 14:51:46 +01:00
Andreas Tolfsen c240bf268d Bug 1473054 - Add geckodriver build instructions to firefox-source-docs.m.o. r=me
MozReview-Commit-ID: F2sQ1FR1mbM
2018-07-04 14:51:45 +01:00
Andreas Tolfsen a42f634810 Bug 1473054 - Fix column alignment in geckodriver release instructions. r=me
MozReview-Commit-ID: 1gg4Z7XZPpS
2018-07-04 14:51:44 +01:00
Andreas Tolfsen 30077d5211 Bug 1473054 - Fix links in geckodriver README. r=me
DONTBUILD

MozReview-Commit-ID: BeDccA3yzrv
2018-07-04 14:51:44 +01:00
Henrik Skupin b8c4d9ddfa Bug 1472112 - [geckodriver] Fix build job on Travis for win32 platform. r=automatedtester
Upgrading the docker image from the unsupported Ubuntu 15.10 release
to the 16.04 LTS release let us build the win32 binary successfully.

DON'T BUILD

MozReview-Commit-ID: 9Z0MPsMqyTu

--HG--
rename : testing/geckodriver/i686-trusty/Dockerfile => testing/geckodriver/i686-xenial/Dockerfile
extra : rebase_source : 5595355b978e17c201b6de5ed0acbb35ffee6344
2018-06-29 11:02:49 +02:00
Andreas Tolfsen 55d5e3a0c1 Bug 1408509 - Support web elements, frames, and windows in geckodriver. r=whimboo
This makes geckodriver support WebDriver web elements, web frames,
and web windows.

Marionette sends back JSON Objects such as

	{<element key>: <uuid>}

where the element key is one of the unique strings this patch adds
to geckodriver::marionette.

MozReview-Commit-ID: HegkGFqxkms

--HG--
extra : rebase_source : 88d51ac29b429124e2e321c0cccda949397fd307
2018-06-19 19:04:36 +01:00
Gijs Kruitbosch 006aa20e16 Bug 1438499 - show 'close multiple tabs' warning dialog when quitting, r=jaws,whimboo
MozReview-Commit-ID: J2gi9do8HK9

--HG--
extra : rebase_source : b22103b5a4d43fc6da535ef00f75ed6bc80d92fb
2018-06-13 09:34:52 -07:00
Gijs Kruitbosch a4d6d71982 Bug 1470100 - use a vector instead of an array for the list of prefs, r=ato
MozReview-Commit-ID: 5JI85Rif28M

--HG--
extra : rebase_source : ce4ee702166107d85b268f78d5efaa66eaa9ab2b
2018-06-21 12:02:00 +01:00
Henrik Skupin 894f69b8b2 Bug 1470414 - Clean-up moz.build files for BUG_COMPONENT in testing/. r=ahal
MozReview-Commit-ID: F5vHc4G13v6

--HG--
extra : rebase_source : 1c6c8de55def6026da467d589ec3a8b511986125
2018-06-22 13:32:05 +02:00
Margareta Eliza Balazs 38873b16e7 Backed out changeset 52e86ed85e54 (bug 1470414) for bustage in ./config/tests/test_mozbuild_reading.py::TestMozbuildReading on a CLOSED TREE 2018-06-25 17:29:18 +03:00
Henrik Skupin df65676052 Bug 1470414 - Clean-up moz.build files for BUG_COMPONENT in testing/. r=ahal
MozReview-Commit-ID: F5vHc4G13v6

--HG--
extra : rebase_source : c39293be7a60ecc22be2f385671769f371dca06b
2018-06-22 13:32:05 +02:00
Henrik Skupin 734f172309 Bug 1467700 - Disable download of OpenH264 and Widevine plugins for Marionette and geckodriver. r=ato
MozReview-Commit-ID: BYcxxdblzcD

--HG--
extra : rebase_source : 5f9861860ee5033bfa807948591fff0bc2b16bb2
2018-06-08 12:12:46 +02:00
Jeremy Lempereur d85fda177c Bug 1406006 - Get well formatted commit hash and commit date when building geckodriver. r=ato
MozReview-Commit-ID: 7h6RuMseOYA

--HG--
extra : rebase_source : 8d1b97ef2601b0cc4917990773fde83c2758bbc1
2018-06-17 09:38:23 +02:00
Andreas Tolfsen 613302c829 Bug 1441204 - Release geckodriver 0.21.0. r=maja_zf
MozReview-Commit-ID: Hpi9mXLax5f

--HG--
extra : rebase_source : 66f4e4f29e36985402f22bc45bda50372d8fe65c
2018-06-14 13:30:07 -07:00
Andreas Tolfsen 61e9d8225b Bug 1441204 - Prepare geckodriver changelog for 0.21.0 release. r=maja_zf
MozReview-Commit-ID: CwgB8LcgiZH

--HG--
extra : rebase_source : f6f33b98cb14b9da7715509d635c73ed19e1874e
2018-06-14 12:35:52 -07:00
Andreas Tolfsen a0bcccec70 Bug 1441204 - Use monospace for headers documenting capabilities. r=maja_zf
Purely stylistic change.

MozReview-Commit-ID: 5eEmyS0m4dy

--HG--
extra : rebase_source : b98262b79940cef257afa0715d7da01cbae012fd
2018-06-14 13:16:34 -07:00
Andreas Tolfsen 7b99746736 Bug 1441204 - Fix WebDriver capabilities table layout. r=maja_zf
The acceptInsecureCerts and pageLoadStrategy capabilities in the
WebDriver capabilities table are missing default values, which
causes the table columns to be misaligned.

MozReview-Commit-ID: 57p4YzxEmUh

--HG--
extra : rebase_source : d247f0d3596de400ff970d46434a04e3fbf2c909
2018-06-14 13:13:34 -07:00
Andreas Tolfsen 1f9dec814e Bug 1441204 - Link implementation status to bug dependency tree. r=maja_zf
The WebDriver implementation status report on MDN is out of date.

MozReview-Commit-ID: BWGvi86fvsO

--HG--
extra : rebase_source : f11dae28fb2aea0abfd49b7f521f58aa50cb059e
2018-06-14 13:11:46 -07:00
Andreas Tolfsen 3a235981b8 Bug 1441204 - Correct minimum required Selenium version. r=maja_zf
Bug 1452024 bumped the minimum required Selenium version to 3.11,
but did apparently not update the README.

MozReview-Commit-ID: Gsn6Kjg8EOr

--HG--
extra : rebase_source : e2415af109e1362ddecfd71ddfecacb7306ce8ba
2018-06-14 13:08:09 -07:00
Andreas Tolfsen 53d50e1b88 Bug 1441204 - Revert removal of extensions.showMismatchUI pref. r=maja_zf
Bug 1433574 removed the extensions.showMismatchUI preference from
geckodriver and the Python client.  Because these tools are used
out-of-tree against all release channels of Firefox, the preference
cannot be removed before Firefox 61 becomes the minimum supported
version.

MozReview-Commit-ID: 2iD4PffP5Yx

--HG--
extra : rebase_source : e3eb9bd431901042183792495193911269e36736
2018-06-14 12:01:15 -07:00