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

449 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen ea4dbaf7a9 Bug 1413292 - Remove backtrace crate dependency from geckodriver. r=jgraham
Made this a separate commit from that which actually removes the
in-tree vendored dependencies to make it easier to review.

MozReview-Commit-ID: 9xbkM0EfOOL

--HG--
extra : rebase_source : 6686dc07a25df1a820914eb715fb733778f092cb
2017-10-31 20:31:53 +00:00
Andreas Tolfsen a1b7e2cd46 Bug 1413292 - Stop sending geckodriver backtrace with errors. r=jgraham
The Rust backtrace from geckodriver is  not useful since any error
we actually return is by-definition handled by the code, and we
can probably get more information just by looking at the error type
and string.

At the same time, it runs the risk of confusing users into thinking
there was a bug in the driver when actually it's perfectly normal
handling of invalid input.

MozReview-Commit-ID: 9S5IaioA5AA

--HG--
extra : rebase_source : 0d98188c263d51402c2330a6b730752487dcc7fc
2017-10-31 20:30:18 +00:00
Andreas Tolfsen 66fd7fce78 NO BUG - Fix link in geckodriver README r=me
DONTBUILD
CLOSED TREE

MozReview-Commit-ID: FcXMuLkOwto
2017-10-31 21:14:18 +00:00
Andreas Tolfsen 74b973dc73 NO BUG - Include geckodriver doc intro r=me
DONTBUILD
CLOSED TREE

MozReview-Commit-ID: 30BkwloZGFM
2017-10-31 21:14:10 +00:00
Andreas Tolfsen 94a08e665f NO BUG - Skip annotated tags when releasing geckodriver r=me
DONTBUILD

MozReview-Commit-ID: CIX5O9P11Xz
2017-10-31 19:10:15 +00:00
Andreas Tolfsen 6e21a62e34 NO BUG - Clarify commit instructions for releasing geckodriver r=me
DONTBUILD

MozReview-Commit-ID: 6tsAfJ8WRDE
2017-10-31 19:09:22 +00:00
Andreas Tolfsen 128ae86a8c Bug 1412037 - Prevent geckodriver from being published. r=jgraham
This prevents the geckodriver crate from being published to a
package registry like crates.io by mistake.

MozReview-Commit-ID: 7Qc9vaPhdJh

--HG--
extra : rebase_source : ec1f470a69c14c240b2cb522eb4475b22ed4a9da
2017-10-30 16:07:06 +00:00
Andreas Tolfsen 0d1f521e56 Bug 1412037 - Release geckodriver 0.19.1. r=jgraham
MozReview-Commit-ID: 4G4Vk5D86Nm

--HG--
extra : rebase_source : 98fb1c61cb1d2714158a502187b892ec58ce7dee
2017-10-26 18:10:51 +01:00
Andreas Tolfsen 4f3f33c2ed Bug 1412037 - Update changelog. r=jgraham
MozReview-Commit-ID: E1Xku8qLcgt

--HG--
extra : rebase_source : fa9013fe5625c9fbfd9c8ea92343494e683ae8c1
2017-10-26 18:10:34 +01:00
Andreas Tolfsen f056551b50 Bug 1412037 - Release webdriver crate 0.32.0. r=jgraham
A release of the webdriver crate is necessary for the release build
to pass on Travis, since testing/geckodriver/Cargo.toml cannot
depend on testing/webdriver as it is exported to the GitHub repository.

MozReview-Commit-ID: 1S2aAtg50t4

--HG--
extra : rebase_source : 53ef155537a44ef2bc141ea30a635e4144625118
2017-10-26 18:05:29 +01:00
Maja Frydrychowicz 2a3ad461a8 Bug 1411433 - Add docs for marionette and geckodriver to Mozilla Source Tree Docs; r=ato
MozReview-Commit-ID: GDQe7BACT6k

--HG--
extra : rebase_source : f47bfc8fb64e8b9d9f858cbe4997f173e5e878e2
2017-10-24 18:53:02 -04:00
Ralph Giles 6095257b3d Bug 1411363 - Update Cargo.lock files for Rust 1.22. r=froydnj
Cargo 0.23.0-beta, included with Rust 1.22.0-beta.2, wants to
move the top-level package description out of the [root] section
of Cargo.lock and into a parallel [[package]] section.
Accept this update by temporarily running the build without
passing --frozen and committing the result.

This is accepted by the cargo versions included in the current
and previous stable rust releases, so it will work with all
supported toolchains.

MozReview-Commit-ID: 1hMykhTknHi

--HG--
extra : rebase_source : 153d2016cd5e637584ea1d755198fbd1a5e7067e
2017-10-24 10:00:24 -07:00
Andreas Tolfsen 2883fd7c0a Bug 1411026 - Propagate Marionette stacks to WebDriver error. r=whimboo
When a stacktrace is provided from Marionette, use the
WebDriverError::new_with_stack constructor to have it propagated
as the WebDriver error's stacktrace rather than use the Rust backtrace.

This patch also removes MarionetteSession::error_from_string in
favour of the new From<String> trait added to ErrorStatus.

It also implements an Into<WebDriverError> trait for MarionetteError
to ease the conversion.

MozReview-Commit-ID: 1z2IGUW5FS2

--HG--
extra : rebase_source : e6a54e275937893972102756b389d38f010e8e7f
2017-10-23 21:57:02 +01:00
Andreas Tolfsen 75f5a2cd64 Bug 1411026 - Rename MarionetteError::status to ::code. r=whimboo
For errors originating from Marionette we talk about "error codes",
not about "error statuses".  This patch fixes the JSON serialisation
method Marionette::to_json which incorrectly serialised the error
code as "status"; it should be "error".

This also removes the MarionetteError::new constructor as we have
no need to allow explicit construction of MarionetteError's.

MozReview-Commit-ID: 7gjz0ebkMIU

--HG--
extra : rebase_source : 6ac6847840a12d1f2eef2e3364496fa3c2288347
2017-10-23 21:53:06 +01:00
Xidorn Quan e39d9574b6 Bug 1409444 - Update rand to 0.3.17. r=manishearth
MozReview-Commit-ID: DjCEQV9t2hi

--HG--
extra : rebase_source : 243c346795b212c90d24fff559f02aebf0aa7d72
2017-10-23 15:52:44 +11:00
Andreas Tolfsen efdea46f6f Bug 1410069 - Mention Bugzilla component in contribution advice. r=whimboo
DONTBUILD

MozReview-Commit-ID: F600Wp413Y2

--HG--
extra : rebase_source : 6980d1fa69681a9ba1b3092a391729b1f56a38a2
2017-10-19 14:32:56 +01:00
Blake Kaplan 3fa965430b Bug 1406212 - Remove references to extensions.e10sBlocksEnabling. r=Felipe
MozReview-Commit-ID: 11q3Go0IkPh

--HG--
extra : rebase_source : fdcf714d18effc964191665eb8422305bda92b65
2017-10-16 13:52:48 -07:00
Andreas Tolfsen fe6ba66d6c Bug 1409438 - Make references to mutable variables immutable. r=whimboo
References to mutable variables do not need mutable themselves.
This fixes a series of mutable variable warnings emitted by the
Rust compiler.

MozReview-Commit-ID: EosL5XNRRX4

--HG--
extra : rebase_source : 62aa86b2c6c87a5f39ee228dcad6b5e4162779d8
2017-10-17 17:04:11 +01:00
Andreas Tolfsen fd2f87074f Bug 1408431 - Fix symbol for Selenium logger in Ruby example. r=whimboo
DONTBUILD

Thanks-to: Lucas Tierney <lucast1533@gmail.com>

MozReview-Commit-ID: CoImF1FclrT

--HG--
extra : rebase_source : 9c32531c812782302c6249e9ce8eaf0a2f1c60c4
2017-10-13 16:18:54 +01:00
Andreas Tolfsen ab81fe7187 Bug 1407969 - TLSify Ruby docs links. r=maja_zf
DONTBUILD

MozReview-Commit-ID: JBn7Ih8BJZ0

--HG--
extra : rebase_source : 911fdbcf28ea66bc87f8db625a0867a80311c54e
2017-10-12 12:58:57 +01:00
Andreas Tolfsen 23aff95abd Bug 1407969 - Use FirefoxDriverLogLevel for Java example. r=maja_zf
The Java client provides two setLogLevel methods in the
FirefoxOptions class.  It is recommended to use the one that accepts
FirefoxDriverLogLevel, as the other one is deprecated.

DONTBUILD

Thanks-to: Alexei Barantsev <barancev@gmail.com>
MozReview-Commit-ID: Fc6p7Gxwn5X

--HG--
extra : rebase_source : 97380c842929328c2785015c2910a3a19b7533d9
2017-10-12 12:56:44 +01:00
Andreas Tolfsen 22a6f8165e Bug 1407969 - Add C# code example. r=maja_zf
DONTBUILD

Thanks-to: Jim Evans <james.h.evans.jr@gmail.com>
MozReview-Commit-ID: DF1HJUj3Yin

--HG--
extra : rebase_source : 82218ea2177460b6ea208b107a874dad2d380176
2017-10-12 12:54:26 +01:00
Andreas Tolfsen b7868a5aa8 Bug 1407969 - Make Ruby example more ergonomic. r=maja_zf
It is better in Ruby to explicitly set the client logger to a certain
level, than relying on the DEBUG output variable or the -d flag,
even though they are all equivalent.

DONTBUILD

Thanks-to: Lucas Tierney <lucast1533@gmail.com>
Thanks-to: p0deje <p0deje@gmail.com>
MozReview-Commit-ID: Eyt9zy0ucZS

--HG--
extra : rebase_source : 0031a1acf8cb8b8b742d03e86d332d9e2d071bb2
2017-10-12 12:50:52 +01:00
Andreas Tolfsen 0de2871e52 Bug 1407969 - Organise code examples alphabetically. r=maja_zf
DONTBUILD

MozReview-Commit-ID: C2H3k1r5gWF

--HG--
extra : rebase_source : a666cc247f3139fd5f4590ebdf0511d258c27f31
2017-10-12 12:50:11 +01:00
Andreas Tolfsen 52487ba035 Bug 1407714 - Update geckodriver contribution guide. r=maja_zf
The geckodriver contribution guide is outdated and talks about
contributing to the GitHub repository.  We have since moved
geckodriver to mozilla-central and the documentation should reflect this.

This patch additionally expands the guide to talk about building
and running tests, communication channels, as well as some spare
documentation on submitting patches.

DONTBUILD

MozReview-Commit-ID: 8ZMrDkAdB6U

--HG--
extra : rebase_source : 78608e518187625dd022d6dacdd68ab17b3c8d8c
2017-10-11 18:47:59 +01:00
Andreas Tolfsen 2449282a05 Bug 1407963 - Link to doc/TraceLogs.md from issue template. r=maja_zf
DONTBUILD

MozReview-Commit-ID: 54AJAExTdhw

--HG--
extra : rebase_source : aaa6c123e7848de863db67b4e1c5fa1b98dc37fe
2017-10-12 12:15:04 +01:00
Andreas Tolfsen cfd3f0d985 Bug 1407963 - Sync issue template with GitHub. r=maja_zf
The issue template was changed on GitHub directly.  This syncs it back.

DONTBUILD

MozReview-Commit-ID: 56xOX0LfHXp

--HG--
extra : rebase_source : d09e14275bf8bddaa0e47ee6c62dab8cbad07f59
2017-10-12 12:07:59 +01:00
Andreas Tolfsen f9e18f3217 Bug 1406965 - Add docs on enabling trace logs. r=automatedtester
DONTBUILD

MozReview-Commit-ID: L2uZuPjA2ig

--HG--
extra : rebase_source : 4d1099d2999f619ceea7b96d58d3ec0731d978e5
2017-10-09 17:56:11 +01:00
Henrik Skupin 89dbeb8d8c Bug 1404891 - Add noProxy documentation for proxy capabilities. r=ato
We missed adding it for the implementation on bug 1387094.

DONTBUILD

MozReview-Commit-ID: E717NEO7o2U

--HG--
extra : rebase_source : facb28d006e514bff6796f8c0e085c73f313d0ce
2017-10-02 23:16:07 +02:00
Henrik Skupin 884db29fa1 Bug 1403503 - Remove obsolete socksUsername and socksPassword capabilities. r=automatedtester
MozReview-Commit-ID: bHqc96uzsm

--HG--
extra : rebase_source : 633bcc11d85addf837abca71120959b4b5f6aeb5
2017-09-28 09:28:13 +02:00
Ian MacLeod 596a2c319b Bug 1368034 - Update default values for urlbar searches in Marionette r=whimboo
Search suggestions create unneccessary network requests and the suggestions
opt-in notification interferes with tests that don't expect it to be there.
So, this patch updates the default settings in Marionette to disable both.

MozReview-Commit-ID: 8X8SYPq19tj

--HG--
extra : rebase_source : cd0fe8f3437340b1266d161e1cad46bcbcd1a6f6
2017-09-25 02:10:47 -07:00
Andreas Tolfsen 681078e51b Bug 1400289 - Add geckodriver release instructions. r=automatedtester
This is a liberal port of the old geckodriver release instructions
that are on the GitHub wiki:

	https://github.com/mozilla/geckodriver/wiki/Releasing

Because the project's canonical home has moved to mozilla-central,
it is better to keep all documentation in one place.  Documentation
close to the source code is the best.

I have improved the release instructions in a number of ways, in
particular by describing how to make a release to GitHub/Travis from
mozilla-central.

DONTBUILD

MozReview-Commit-ID: 6f87DLDM59E

--HG--
extra : rebase_source : c144ac8ee2486a38d7eb26c91276e841be50fc81
2017-09-16 11:12:19 +01:00
Andreas Tolfsen 2d18e3fcce Bug 1391605 - Correct webdriver create version number in 0.19.0 release. r=me
MozReview-Commit-ID: J4TrdQIiJVg
2017-09-16 15:15:03 +01:00
Andreas Tolfsen 1c41d7c2a0 Bug 1391605 - Release webdriver 0.31.0. r=me
MozReview-Commit-ID: O3cTr5t58F
2017-09-16 15:13:50 +01:00
Sebastian Hengst 673852426e Backed out changeset ce0bfafc57be (bug 1391605) 2017-09-16 14:22:15 +02:00
Andreas Tolfsen 9c08aa7374 Bug 1391605 - Correct webdriver create version number in 0.19.0 release. r=me
MozReview-Commit-ID: J4TrdQIiJVg
2017-09-16 12:55:06 +01:00
Henrik Skupin d361d3aadb Bug 1391605 - Bump geckodriver to 0.19.0. r=ato
MozReview-Commit-ID: 4ai3ShcNhdS

--HG--
extra : rebase_source : bd255ed9864e484cb3ac395d999d5d5ac6c44425
2017-09-14 18:08:28 +02:00
Henrik Skupin 9c4f466023 Bug 1391605 - Update CHANGES.md for changes in geckodriver 0.19.0. r=ato
MozReview-Commit-ID: D1AAN8iWsuP

--HG--
extra : rebase_source : d7378190f1c9a6b0568676f200836a9d15a37712
2017-09-14 18:06:43 +02:00
Henrik Skupin 890c883dee Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7

--HG--
extra : rebase_source : 2fa6cf86ddce798eba88a41d227768f149cccc70
2017-09-14 21:03:40 +02:00
Sebastian Hengst 80dfe00824 Backed out changeset 3baecf7b25f2 (bug 1399628) for build bustage. r=backout 2017-09-15 14:36:12 +02:00
Henrik Skupin b2ac5a3fe1 Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7

--HG--
extra : rebase_source : 9cec29085032318e9e8467d6d754afe0890ae645
2017-09-14 21:03:40 +02:00
Henrik Skupin 43678cf327 Bug 1398057 - Not all command arguments are printed to the log. r=jgraham
By logging the used browser arguments from geckodriver only the
-marionette argument ends up in the log. Instead mozrunner should
be used which knows about any of them.

MozReview-Commit-ID: J9px0pWSwQm

--HG--
extra : rebase_source : 36730f7c2ecffa7a28dda3d16404f523bd075d35
2017-09-13 09:15:42 +02:00
Andreas Tolfsen 9342f618fd Bug 1398493 - Recommend Selenium 3.5 for geckodriver. r=automatedtester
Addresses code review comment.

DONTBUILD

MozReview-Commit-ID: 5CQw4SDos0e

--HG--
extra : rebase_source : 80c522a685874c752af1235674c11ef1f7365954
2017-09-12 19:06:27 +01:00
Andreas Tolfsen 6908673c47 Bug 1398493 - Improve testing/geckodriver Markdown docs. r=automatedtester
This change, though unstubstantial, will make the Markdown documents
under testing/geckodriver more readable in text editors.

DONTBUILD

MozReview-Commit-ID: 21yQUExNJhU

--HG--
extra : rebase_source : cb51d1a0ce93c561c79fabb941b56192ec711480
2017-09-09 16:50:57 +01:00
Andreas Tolfsen 7050aaf58b Bug 1396866 - Relax WindowRectResponse typing. r=jgraham
The WindowProxy screenX/screenY/outerWidth/outerHeight fields are
platform-independent longs, meaning the bitness of the system is not
taken into account.  This is defined in WebIDL as "a signed integer type
that has values in the range [−2147483648, 2147483647]".  This can be
represented with an i32 internally.

Additionally, the WebDriver specification says that we should accept
JSON Numbers as input.  This means the input value can be either a float
or an integer.  rustc_serialize handles this very badly and we first
need to extract the input as f64 because this is the most liberal type
(i.e. an integer can be coerced to a float without problem).

We then we cast the number to an i64 which trims off any decimals without
worrying that the number wraps.  We then run bounds checks of an i32
and error if the number will not fit within the set range.

This patch expects the output from Marionette to be conforming.

MozReview-Commit-ID: CVdUZWh2t8X

--HG--
extra : rebase_source : 6780985703d5d5291eae508f9eb2fdec16c261cc
2017-09-09 12:21:50 +01:00
Henrik Skupin c7eb7901af Bug 1388251 - Updated geckodriver changelog for process handling changes. r=jgraham
MozReview-Commit-ID: 8l18q0SgjJH

--HG--
extra : rebase_source : ddf18a2c75151a5d99419b214c67bd56467a2f6f
2017-09-12 19:15:50 +02:00
Henrik Skupin 34568cd204 Bug 1388251 - Cancel connection attempts if process is not running. r=jgraham
If the browser process is not running it doesn't make sense to try to
connect to it for another 60s. Instead error out immediately.

MozReview-Commit-ID: 64DTZfEfzQj

--HG--
extra : rebase_source : 9951b1a64cbd8b387c2bc5e1152de0a975dbbe77
2017-08-31 15:43:20 +02:00
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