Commit Graph

402 Commits

Author SHA1 Message Date
Henrik Skupin
71551dcd13 Bug 1388251 - Bump mozrunner crate to version 0.5.0. r=jgraham
MozReview-Commit-ID: IhMuuz7EWv3

--HG--
extra : rebase_source : 0fef4fa63e5b808b9b163f04f3f79c1cfe68dbda
2017-09-11 20:43:43 +02:00
Andreas Tolfsen
f38299c32f Bug 1398450 - Fix prefs test regression. r=jgraham
The marionette.defaultPrefs.port preference was changed to
marionette.port, but because we currently do not run tests in CI we
missed updating the test.

MozReview-Commit-ID: LKstRYmJcMO

--HG--
extra : rebase_source : 1633b5b82c3c8725ff66423119d7c476fa942b01
2017-09-09 16:58:54 +01:00
Henrik Skupin
a5a02051cd Bug 1387470 - Allow geckodriver to use the webdriver conforming click. r=ato
To allow the selection of the new webdriver spec conforming
"clickElement" method over the old legacy Selenium one, the
"moz:webdriverClick" capability can be used. Setting it's value
to true will enable the conforming click.

MozReview-Commit-ID: HMvFFEJDvpG

--HG--
extra : rebase_source : 34bb71f7d64d08968cd6b52760cf4d36a61cb29d
2017-09-01 17:21:50 +02:00
Andreas Tolfsen
5a76982786 Bug 1396838 - Drop WindowState. r=jgraham
The window state concept was removed from WebDriver level 1.

MozReview-Commit-ID: 6cogstpDc0a

--HG--
extra : rebase_source : 539df9fed0761b8e9609f60c3f9b77b946829147
2017-09-05 14:50:06 +01:00
Andreas Tolfsen
f5e4748beb Bug 1368265 - Remove unnecessary license files. r=automatedtester
Since both these Rust programs are hosted in mozilla-central,
they are governed by the top-level LICENSE file.  See also
toolkit/content/license.html.

MozReview-Commit-ID: 4C0fEAeJZ6h

--HG--
extra : rebase_source : f8beebd578cd816d974cc9416c6bdb1bdfa37b12
2017-09-03 17:17:13 +01:00
Andreas Tolfsen
c722f88ac8 Bug 1368265 - Update geckodriver and webdriver Cargo.tomls. r=automatedtester
MozReview-Commit-ID: 6MsrxinrYEp

--HG--
extra : rebase_source : c0f5b076183c53c86aae0e757b6ef391f1eba8c1
2017-09-03 16:24:55 +01:00
Andreas Tolfsen
8e1b5b4d8b Bug 1368265 - Use in-tree testing/webdriver. r=automatedtester
MozReview-Commit-ID: R74BGZOBBx

--HG--
extra : rebase_source : 263d5cdf7317bdea6b4bcf3d2b7256429da9d4cf
2017-09-03 16:15:48 +01:00
Henrik Skupin
72d69597a2 Bug 1369827 - Update geckodriver docs for proxy port changes. r=ato
MozReview-Commit-ID: 4yBC9AAHU5X

--HG--
extra : rebase_source : b13451573091fb731ee31b928a3d79a5b7361d0f
2017-08-18 14:55:07 +02:00
Henrik Skupin
700634d241 Bug 1369827 - Upgrade webdriver crate to 0.30. r=ato
MozReview-Commit-ID: GRWyIULr0ly

--HG--
extra : rebase_source : 9661736af2db4f6655cd43a36e45b8caf09a32ef
2017-08-15 12:32:06 +02:00
Henrik Skupin
c7e59bd618 Bug 1388249 - Add crashreporter environment variables to geckodriver. r=jgraham
In geckodriver we need a better control about the behavior of the
crash reporter. It should be enabled by default if possible, but
never show its window when a crash actually happens. Both settings
will allow us later to analyze the generated minidump files.

Further the crash reporter will shutdown Firefox now in case of
content crashes. This prevents a possible hang of Marionette
when a command in content gets executed and the framescript
gets disconnected.

MozReview-Commit-ID: DV1E7yQlElM

--HG--
extra : rebase_source : 6273a2f45fbe5f1b21c099ed8efcea44d72ec8e3
2017-08-23 13:33:12 +02:00
Henrik Skupin
2c0bc01a9a Bug 1388249 - Upgrade to mozrunner 0.4.2. r=jgraham
MozReview-Commit-ID: 5cexJ4uJnB1

--HG--
extra : rebase_source : b643bb0fa203bee5bda765fea62f515a139a55d5
2017-08-23 12:25:03 +02:00
Francois Marier
95ce2d4568 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
2017-08-22 17:56:20 -07:00
Francois Marier
5139582bc4 Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x

--HG--
extra : rebase_source : 990bbd4ba7a6daaa08928a697e72f2d6b5b39a5a
2017-08-22 17:55:28 -07:00
Wes Kocher
207dd28c61 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -07:00
Francois Marier
7975ef15d4 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : c9a641e4bf49c48bf864ed546bf2ae6eb51c27e4
2017-08-08 16:25:12 -07:00
Francois Marier
4a7299c438 Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x

--HG--
extra : rebase_source : 533b2e2296d1fe70d6c334bb1766ca26679d224f
2017-08-22 16:00:50 -07:00
Andreas Tolfsen
60d169f368 Bug 1388036 - Map WebDriverCommand::FullscreenWindow correctly. r=automatedtester
The WebDriverCommand::FullscreenWindow command maps to an unknown
Marionette command "fullscreenWindow".  The correct command is
"fullscreen".

MozReview-Commit-ID: 4th2TYcIbP2

--HG--
extra : rebase_source : 2fcd79984a31962aa18bb10b15a487907707fe8f
2017-08-07 13:58:28 +01:00
Henrik Skupin
f7fd4a1cd9 Bug 1387403 - Force quitting the browser if no session can be established. r=jgraham
In case the NewSession command fails due to errors returned
by Marionette, the browser has to be killed. This is necessary
because DeleteSession always requires an existent session, and
would fail in closing the browser. So the process would continue
to be alive.

MozReview-Commit-ID: 1llX4lPNYjN

--HG--
extra : rebase_source : 0da6529e2c09358c83760fc66c997db09665e304
2017-08-17 14:05:11 +02:00
Henrik Skupin
3b841dfe1d Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD

--HG--
extra : rebase_source : 3e47333f6fa196698b8cf77e1e64a0ff1e233070
2017-08-15 19:28:53 +02:00
Sebastian Hengst
e95354daa8 Backed out changeset 32d34008eec5 (bug 1387092) 2017-08-15 19:07:57 +02:00
Henrik Skupin
e33bba5063 Bug 1390486 - Add "dom.file.createInChild" preference to recommended prefs. r=ato
To allow geckodriver to create file objects in child processes, this
preference has to be set to true. As such it needs to be recommended
in Marionette and set as default preference for geckodriver.

MozReview-Commit-ID: 8bdbi5jH6Vc

--HG--
extra : rebase_source : cc8963d2b15357b6d1607854e978aa764fcbd42f
2017-08-15 17:47:15 +02:00
Henrik Skupin
f0d69131d1 Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD

--HG--
extra : rebase_source : 9ab4f76b2ac59d9c07d3dded9c47eda5a9f72310
2017-08-11 18:58:18 +02:00
Sebastian Hengst
4b79f3b23a merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mN7ThnGN3X
2017-08-10 17:20:12 +02:00
Sebastian Hengst
01f51a3571 Backed out changeset 85b4584e1a83 (bug 1384969) for dropping debug and trace output from Marionette. r=backout a=backout
MozReview-Commit-ID: Bc8BwL6aatK
2017-08-10 11:45:36 +02:00
Andreas Tolfsen
8104c26b91 Bug 1388365 - Vendor webdriver 0.29.0. r=whimboo
MozReview-Commit-ID: 3vhk9kfmDHD

--HG--
extra : rebase_source : 393c3ff983444bc8639d3ed94edce0b27dabe522
2017-08-08 15:10:55 +01:00
Andreas Tolfsen
a68cdde16c Bug 1388365 - Upgrade to webdriver 0.29.0. r=whimboo
Upgrades the webdriver crate dependency to 0.29.0, which contains some
backwards incompatible changes for RectResponse.  This type has been
split in two, WindowRectResponse and ElementRectResponse.

The former type contains a new "state" field which is already implemented
by Marionette.  Because geckodriver is used with a range of earlier
Firefoxen, it defaults to "normal" window state if the field is not
returned from Marionette.  This is acceptable.

MozReview-Commit-ID: FRxppRVmiZl

--HG--
extra : rebase_source : 4a86659f337598bb4f5623c51f5df288c8a5dd69
2017-08-08 15:09:45 +01:00
Andreas Tolfsen
5f75a47a96 Bug 1388072 - Drop Marionette fallback prefs from geckodriver. r=automatedtester
The marionette.defaultPrefs.port and marionette.logging preferences were
removed in https://bugzil.la/1344748, which shipped in Firefox 54.
Because the next version of geckodriver (0.19.0) will only support
Firefox 55 and greater, it is safe to remove the fallbacks.

MozReview-Commit-ID: 4fhtoRasqyB

--HG--
extra : rebase_source : 0ac6dff0343efd66312a482f2be832e95013be48
2017-08-07 16:13:54 +01:00
Andreas Tolfsen
b7b13729fe Bug 1387552 - Document pageLoadStrategy in geckodriver README. r=automatedtester
MozReview-Commit-ID: 7oR84Hm9njP

--HG--
extra : rebase_source : c445670978447f21d28a2388e6dfd08aa5d67ff6
2017-08-04 20:40:58 +01:00
Andreas Tolfsen
0ff114d334 Bug 1387552 - Order capabilities lexicographically. r=automatedtester
MozReview-Commit-ID: GBvz053VdEm

--HG--
extra : rebase_source : 6b664988db52b363dd6a84dc1460ce473b7bcaa1
2017-08-04 20:36:24 +01:00
Valentin Gosu
195f9f0987 Bug 1383831 - Upgrade rust-url to version 1.5.1 r=froydnj
MozReview-Commit-ID: L3j6K5dDWHi

--HG--
extra : rebase_source : 65b34e84139927f1c28dc38cf2a00a0c2902b975
2017-08-02 13:44:48 +03:00
Yangyi Peng
f2b8c04562 Bug 1380936 - Add Minimize Window command to geckodriver; r=ato
MozReview-Commit-ID: Le6rAUMDjwe

--HG--
extra : rebase_source : 2120abbe4a4c57be3d669f02e29dc2ac03b1a90f
2017-08-01 11:42:58 +08:00
Andreas Tolfsen
14e01f9799 Bug 1384969 - Stop forwarding browser console output to stdout with geckodriver; r=automatedtester,jgraham
browser.dom.window.dump.enabled causes the browser console messages to
reach stdout, often confusing geckodriver users.

We don’t recommend this preference in the Marionette server, although
it is set in geckoinstance.py.  This seems appropriate to the Gecko
developer audience.

Use of the dump() statement will of course still be possible in chrome
level code.

MozReview-Commit-ID: 7s7WlV2COBQ

--HG--
extra : rebase_source : 146d81109dbc547bcd1aeafe1c13ff632e90b73f
2017-07-27 16:55:34 +01:00
Jason Juang
b056ca7a99 Bug 1383931 - Accept base64-encoded addons in the addon install command. r=ato
This allows tests that use Geckodriver remotely to more easily install
addons. The base64 blob is written to a temporary file before being
passed on to Marionette.

MozReview-Commit-ID: DnaBqoXCj5

--HG--
extra : rebase_source : 0c3f37b65fcb47c5a1389348e34f19b98c8183d5
2017-07-24 15:43:05 -07:00
Andreas Tolfsen
2ec9000e7f Bug 1379482 - Release geckodriver 0.18.0; r=jgraham
MozReview-Commit-ID: LDb9G7srbcz

--HG--
extra : rebase_source : bd2592ba2827c7e775cda854f4e77807a784bded
2017-07-10 16:53:01 +01:00
Andreas Tolfsen
2775e687c8 Bug 1379482 - Update geckodriver repository address; r=jgraham
The canonical geckodriver source code no longer lives on GitHub, but
in mozilla-central's testing/geckodriver directory.  Linking through
searchfox.org because it provides a better UI than hg.mozilla.org.

MozReview-Commit-ID: LmnviuC7Z9Y

--HG--
extra : rebase_source : 23f0e669bd719c595300d4e7ac38bc12f4937f57
2017-07-10 14:47:17 +01:00
Andreas Tolfsen
6ce3ddca8d Bug 1379482 - Update geckodriver changelog for 0.18.0; r=jgraham
MozReview-Commit-ID: GRIJM8fEwts

--HG--
extra : rebase_source : 67f76fc3a5515c4c517904f75409eda46d050480
2017-07-10 14:37:20 +01:00
Andreas Tolfsen
27406dfcac Bug 1379482 - Upgrade mozrunner to 0.4.1; r=jgraham
Upgrades the mozrunner crate dependency by pinning it to 0.4.1.  With `./mach vendor rust' I could not find any other way to force a new version to be downloaded because cargo, as far as I understand, does not yet support using crates.io as a fallback.

This patch also pins the mozprofile and mozversion dependencies exactly, although this is strictly not needed yet because they we have the latest versions vendored in-tree.

MozReview-Commit-ID: 8emDKbiYd0S

--HG--
extra : rebase_source : c153506f481255b2f9362e94da3254013ad522ab
2017-07-10 16:52:41 +01:00
Andreas Tolfsen
3e285d3a48 Bug 1379482 - Update geckodriver README with -profile and -headless; r=jgraham
Overhaul of geckodriver's README to include more detailed information
about picking up prepared profiles from the filesystem using the args
capability in moz:firefoxOptions.  It also includes a short example
on running Firefox in headless mode, which is available on some modern
Firefoxen on certain systems.

Also updates build instructions now that geckodriver lives in-tree.

MozReview-Commit-ID: AoJtpULBctH

--HG--
extra : rebase_source : 3697262f7050778ee1bc81ff4c26d51bf2cf86d4
2017-07-10 14:32:36 +01:00
Andreas Tolfsen
d0c2d63a7c Bug 1379482 - Add hgignore rules for geckodriver for parity; r=jgraham
Removes .version file ignore from .gitignore and creates a
testing/geckodriver/.hgignore rule file for parity with git.

MozReview-Commit-ID: HXgbLxeleAl

--HG--
extra : rebase_source : 8c1f919a77351378a580ab161e9660c5868e881f
2017-07-10 14:24:51 +01:00
Andreas Tolfsen
b7dac93d57 Bug 1379482 - Sync geckodriver README with GitHub; r=jgraham
Upstream of changes made on GitHub.

MozReview-Commit-ID: 3GP1NwIDlwW

--HG--
extra : rebase_source : 72102f794fa11760ca70164ebb33a5c61a6d7edc
2017-07-10 13:41:46 +01:00
Andreas Tolfsen
4c3ba87cfe Bug 1372595 - Return single cookie for GetNamedCookie; r=jgraham
The GetNamedCookie command currently returns a JSON Array of one,
retained cookie, after it has removed the cookies that don't match by
name.

This is in violation of the WebDriver specification, which says it must
return the cookie serialisation directly.

MozReview-Commit-ID: 9yEiarEGBez

--HG--
extra : rebase_source : ec393eec712a6f957cee22d261bcd9ed13c6ec5b
2017-06-16 16:46:34 +01:00
Jan Beich
3b4550a1c2 Bug 1376411 - Update libc to 0.2.24 to get support for more Tier3 platforms. r=rillian
MozReview-Commit-ID: Ct1en8VPEWf

--HG--
rename : third_party/rust/libc/ci/docker/arm-linux-androideabi/accept-licenses.sh => third_party/rust/libc/ci/android-accept-licenses.sh
extra : rebase_source : d7a64cb5e65f1c76c786d3def9da8aa3903665bd
2017-06-29 13:09:29 +00:00
Andreas Tolfsen
f931aa2ee1 Bug 1374977 - Log geckodriver version on startup; r=jgraham
MozReview-Commit-ID: 3DyRPpAXUPo

--HG--
extra : rebase_source : 7955c46e78be50b4e0c23565716f59b8f35df05e
2017-06-23 17:00:48 +01:00
Andreas Tolfsen
5c81559723 Bug 1375425 - Remove deprecated commands; r=automatedtester
The "timeouts" command could have been removed in Firefox 55, and
"quitApplication" can be removed with Firefox 56.

MozReview-Commit-ID: Fe7x8Yy0vSb

--HG--
extra : rebase_source : fc8b2c3c27f76a472cbdd8681efff06ca60e00f7
2017-06-22 10:42:55 +01:00
Phil Ringnalda
1d977147a3 Backed out 3 changesets (bug 1372595) for build bustage everywhere except Linux32 and OS X
CLOSED TREE

Backed out changeset 6d9081d16588 (bug 1372595)
Backed out changeset 65c71d2ef601 (bug 1372595)
Backed out changeset 5cbd77708cd9 (bug 1372595)

MozReview-Commit-ID: KXCLB1Rt0KN
2017-06-22 19:23:30 -07:00
Andreas Tolfsen
5a99ed9a0e Bug 1372595 - Return single cookie for GetNamedCookie; r=jgraham
The GetNamedCookie command currently returns a JSON Array of one,
retained cookie, after it has removed the cookies that don't match by
name.

This is in violation of the WebDriver specification, which says it must
return the cookie serialisation directly.

MozReview-Commit-ID: 9yEiarEGBez

--HG--
extra : rebase_source : ad4acfb9510354a86a0b604cacf32cfd5c4f8e5d
2017-06-16 16:46:34 +01:00
Andreas Tolfsen
4a968ad679 Bug 1375207 - Display hash from whence geckodriver came in --version; r=jgraham
Because we no longer can tag geckodriver releases in mozilla-central,
we need to include build information in the program itself.  In the
version information message displayed when passing the --version flag,
we now include the current tip's SHA1 and build date following the
version number.

This patch could be made simpler by dumping this information correctly
formatted into a text file in the output directory, but it was requested
in https://bugzilla.mozilla.org/show_bug.cgi?id=1374977 to also include
the version information in the log output, which means we need to access
it differently and in different places.

MozReview-Commit-ID: CbFQn7IV8ew

--HG--
extra : rebase_source : dcc38ba7b5f209e9878755d5d75b611e22b5253d
2017-06-22 16:28:18 +01:00
Andreas Tolfsen
d27785f266 Bug 1375207 - Quench unused import warning for CookieResponse; r=jgraham
MozReview-Commit-ID: KMOlSXXyvuB

--HG--
extra : rebase_source : 23e312eb8f973263d8e6c996ca65ddab6cce2c66
2017-06-22 16:21:51 +01:00
David Burns
4691012f79 Bug 1371405 - Update vendored WebDriver crate; r=jgraham
This updates the vendored WebDriver crate to 0.27.0

MozReview-Commit-ID: HM6MIU9IDAq

--HG--
extra : rebase_source : 137941518076a8d99e5b8c40ac67ad60d9f205b9
2017-06-19 15:42:25 +01:00
David Burns
94465e777c Bug 1371405: Update Cookie handling code to align with WebDriver crate; r=ato
Details of changes to WebDriver Crate can be found at
48e436df3f

MozReview-Commit-ID: 9rie1uA0JYO

--HG--
extra : rebase_source : 3f706585158f096f01a9580c46e5a84a7afad5a9
2017-06-19 14:43:06 +01:00