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

83 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 323c8efcb2 Bug 1682757 - [marionette] Register MarionetteEventsActor globally. r=marionette-reviewers,jgraham
To not miss certain events the event actor has to stay registered
throughout the whole lifetime of the session.

Differential Revision: https://phabricator.services.mozilla.com/D99884
2020-12-17 18:50:13 +00:00
Csoregi Natalia 0555db2f77 Backed out 3 changesets (bug 1682757, bug 1669174) for pointerevents failures. CLOSED TREE
Backed out changeset 1a95e03f79f6 (bug 1669174)
Backed out changeset f6185b36024b (bug 1682757)
Backed out changeset 596508c4b86c (bug 1682757)
2020-12-16 20:38:59 +02:00
Henrik Skupin d1940ce560 Bug 1682757 - [marionette] Register MarionetteEventsActor globally. r=marionette-reviewers,jgraham
To not miss certain events the event actor has to stay registered
throughout the whole lifetime of the session.

Differential Revision: https://phabricator.services.mozilla.com/D99884
2020-12-16 16:31:10 +00:00
Julian Descottes 257a304419 Bug 1675320 - [marionette] Wait for the pageshow event in newWindow command r=marionette-reviewers,whimboo
Depends on D96117

Differential Revision: https://phabricator.services.mozilla.com/D96119
2020-11-10 10:40:11 +00:00
Henrik Skupin d3bbed0006 Bug 1665307 - [marionette] Lazily load Log.get in all JS modules. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90382
2020-09-16 11:51:36 +00:00
Henrik Skupin 2866bc388a Bug 1612831 - [marionette] Move navigation commands to parent process. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D80622
2020-09-15 04:53:24 +00:00
Henrik Skupin 5a88335ebc Bug 1606637 - [marionette] Use plain Promise instead of TimedPromise for Sleep. r=marionette-reviewers,maja_zf
TimedPromise logs a warning if the timeout exceeded and not error
should be raised. Given that Sleep always runs into that condition
a lot of inappropriate log entries are made that also causes
confusion for our users when commands (especially actions) don't
work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D89354
2020-09-09 09:35:50 +00:00
Bogdan Tara f32777f722 Backed out changeset cb50aecf4bad (bug 1606637) for perform_actions/pointer* failures CLOSED TREE 2020-09-09 04:57:03 +03:00
Henrik Skupin e9c734cfdc Bug 1660881 - [marionette] Always define lazy getter for Log as "logger". r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D89396
2020-09-08 18:28:44 +00:00
Henrik Skupin 4f4259b645 Bug 1660881 - [marionette] Use XPCOMUtils.defineLazyModuleGetters() to defer loading of not immediately necessary modules. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D89395
2020-09-08 18:22:43 +00:00
Henrik Skupin ed215b010b Bug 1660881 - [marionette] Declare EXPORTED_SYMBOLS at the top of the file. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D89394
2020-09-08 18:19:32 +00:00
Henrik Skupin a345bf0d0f Bug 1606637 - [marionette] Use plain Promise instead of TimedPromise for Sleep. r=marionette-reviewers,maja_zf
TimedPromise logs a warning if the timeout exceeded and not error
should be raised. Given that Sleep always runs into that condition
a lot of inappropriate log entries are made that also causes
confusion for our users when commands (especially actions) don't
work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D89354
2020-09-08 18:36:52 +00:00
Henrik Skupin addce72fc2 Bug 1660781 - [marionette] Refactor code in error.js into a single error namespace. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D88137
2020-08-26 08:42:14 +00:00
Henrik Skupin 9f8c78de2f Bug 1619481 - [marionette] IdlePromise should not hang when underlying window gets closed. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D72109
2020-04-27 14:26:19 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Henrik Skupin 57b6487f42 Bug 1529516 - [marionette] Make stacktrace of logged TimedPromise contain the upper stack. r=ato,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D20637

--HG--
extra : moz-landing-system : lando
2020-01-02 14:39:33 +00:00
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Noemi Erli 7bb80a2258 Backed out 2 changesets (bug 1529516) per dev's request for causing issues with wdspec a=backout
Backed out changeset 0c48c658c7cf (bug 1529516)
Backed out changeset 4e00119c579c (bug 1529516)
2019-02-23 12:54:36 +02:00
Henrik Skupin 65837e9068 Bug 1529516 - [marionette] Use Promise instead of TimedPromise for Sleep(). r=ato
"Sleep()" currently uses the TimedPromise class and as such logs
a warning message each time. To not massively clutter the log files
with those entries Sleep should just use a plain Promise.

Depends on D20637

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

--HG--
extra : moz-landing-system : lando
2019-02-21 13:11:11 +00:00
Henrik Skupin 8116bbe8f7 Bug 1529516 - [marionette] Make stacktrace of logged TimedPromise contain the upper stack. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D20637

--HG--
extra : moz-landing-system : lando
2019-02-21 13:04:54 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Henrik Skupin ea87c4dedf Bug 1504756 - [marionette] Remove default timeout from PollPromise. r=ato
By default PollPromise has to behave similar to a normal Promise
and wait forever until it gets resolved or rejected.

Depends on D13662

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:12:24 +00:00
Henrik Skupin 74c45eb2ed Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:14:22 +00:00
Henrik Skupin a384666194 Bug 1504756 - [marionette] Use waitForMessage() to wait for an expected message manager message. r=ato
Depends on D13660

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:12:17 +00:00
Henrik Skupin 2575586fb6 Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:10:47 +00:00
Henrik Skupin be3136d0ab Bug 1504756 - [marionette] Add executeSoon() to run tasks on the main thread. r=ato
To be closer to other test harnesses which are using executeSoon()
to run a task on the main thread, this patch adds the same
method to Marionette's sync module.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:10:14 +00:00
Brindusan Cristian 75f86d396d Backed out 7 changesets (bug 1504756) for xpcshell failures on test_sync.js.
Backed out changeset 9d80f662ad2b (bug 1504756)
Backed out changeset 8f9d90979825 (bug 1504756)
Backed out changeset 9715660f8c07 (bug 1504756)
Backed out changeset c25c93d2dc4d (bug 1504756)
Backed out changeset 58ab81d373b9 (bug 1504756)
Backed out changeset 21658a2d0174 (bug 1504756)
Backed out changeset 93ff3f0d95bd (bug 1504756)
2019-01-09 21:57:50 +02:00
Henrik Skupin 3664921097 Bug 1504756 - [marionette] Remove default timeout from PollPromise. r=ato
By default PollPromise has to behave similar to a normal Promise
and wait forever until it gets resolved or rejected.

Depends on D13662

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

--HG--
extra : moz-landing-system : lando
2019-01-09 18:24:06 +00:00
Henrik Skupin b0f2aca7f3 Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

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

--HG--
extra : moz-landing-system : lando
2019-01-09 18:27:25 +00:00
Henrik Skupin cc62f45167 Bug 1504756 - [marionette] Use waitForMessage() to wait for an expected message manager message. r=ato
Depends on D13660

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

--HG--
extra : moz-landing-system : lando
2019-01-09 18:22:57 +00:00
Henrik Skupin 2412720695 Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

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

--HG--
extra : moz-landing-system : lando
2019-01-09 18:22:19 +00:00
Henrik Skupin c9dc562750 Bug 1504756 - [marionette] Add executeSoon() to run tasks on the main thread. r=ato
To be closer to other test harnesses which are using executeSoon()
to run a task on the main thread, this patch adds the same
method to Marionette's sync module.

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

--HG--
extra : moz-landing-system : lando
2019-01-09 18:21:50 +00:00
Cosmin Sabou 4d5fd1304e Backed out 6 changesets (bug 1504756) as requested by whimboo in order to stop some wpt and mn intermittents. a=backout
Backed out changeset d7d78e79f0b3 (bug 1504756)
Backed out changeset 5c495fd7f64d (bug 1504756)
Backed out changeset 5c2826c58f9e (bug 1504756)
Backed out changeset f23b667d8bfa (bug 1504756)
Backed out changeset 6068c233f4ef (bug 1504756)
Backed out changeset 65858c8c0fbd (bug 1504756)

--HG--
extra : rebase_source : 6b895c62a74c6f7521e4a4baff3b0498c65fcbf9
2018-12-20 18:07:02 +02:00
Henrik Skupin eb8486826a Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:57:48 +00:00
Henrik Skupin c3571c164d Bug 1504756 - [marionette] Use waitForMessage() to wait for an expected message manager message. r=ato
Depends on D13660

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:57:23 +00:00
Henrik Skupin e099e3a840 Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:56:56 +00:00
Henrik Skupin 63c73cd666 Bug 1504756 - [marionette] Add executeSoon() to run tasks on the main thread. r=ato
To be closer to other test harnesses which are using executeSoon()
to run a task on the main thread, this patch adds the same
method to Marionette's sync module.

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:56:32 +00:00
Cosmin Sabou 5d8f09e4fd Backed out 6 changesets (bug 1504756) for wpt failures on webdriver/tests/execute_script/promise.py
Backed out changeset d808b528532a (bug 1504756)
Backed out changeset 30d345cce5be (bug 1504756)
Backed out changeset a8ea6d01fbe1 (bug 1504756)
Backed out changeset ba627a1b61dc (bug 1504756)
Backed out changeset c90e4b2e1b28 (bug 1504756)
Backed out changeset 04da1f01afba (bug 1504756)
2018-12-05 08:33:46 +02:00
Henrik Skupin 6cd30adf3d Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:59:39 +00:00
Henrik Skupin 614fbd008f Bug 1504756 - [marionette] Use waitForMessage() to wait for an expected message manager message. r=ato
Depends on D13660

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:59:37 +00:00
Henrik Skupin cbb83ceeeb Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:57:51 +00:00
Henrik Skupin 23bbc3c83d Bug 1504756 - [marionette] Add executeSoon() to run tasks on the main thread. r=ato
To be closer to other test harnesses which are using executeSoon()
to run a task on the main thread, this patch adds the same
method to Marionette's sync module.

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:57:28 +00:00
Henrik Skupin bd8c60832d Bug 1510584 - [marionette] Have a better granularity between DEBUG and TRACE logging output. r=ato
The debug output is currently kinda polluted with lines of
received events and observer notifications. Those are not usually
needed by anyone beside us, but they also add little value in
having additional trace output, because that mainly would only
add the command and response messages.

To make debug output more helpful for our users the command
and response messages should appear here and not in trace.

But all the additional log output lines as mentioned above
we usually make use of for investigating problems should
be trace only.

Also a lot of existing debug output will remain unchanged.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 19:31:38 +00:00
Andreas Tolfsen 4d97ed0425 bug 1492499: marionette: increase TimedPromise timeout on debug; r=whimboo
The things that rely on TimedPromise, such as awaiting a sizemodechange
event on exiting fullscreen, takes a lot longer to perform in Asan
and debug builds than in optimised builds.

This patch increases the TimedPromise timeout duration by three
times in debug builds, which is the same amount WPT uses.

Depends on D10569

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

--HG--
extra : moz-landing-system : lando
2018-11-08 13:11:40 +00:00
Andreas Tolfsen 78a0a14d3d bug 1492499: marionette: add debounce sync primitive; r=automatedtester
This adds a new synchronisation primitive to Marionette which will
allow us to wait for the last in a sequence of events to fire.
This is especially useful for high-frequency events such as the DOM
resize event, where multiple resize events may fire as the window
dimensions are being changed.

Depends on D8411

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

--HG--
extra : moz-landing-system : lando
2018-11-08 13:11:14 +00:00
Andreas Tolfsen 48089e16fe bug 1492499: marionette: warn on TimedPromise bailing; r=automatedtester
We often use TimedPromise to ensure Marionette does not unexpectedly
block on a promise that, for whatever reason, does not resolve.
It can however be useful to be alerted when they don't, as it quite
often means there is an underlying problem.

Depends on D8406

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

--HG--
extra : moz-landing-system : lando
2018-10-11 16:40:36 +00:00
Henrik Skupin c1af84a166 Bug 1405370 - [marionette] Avoid usage of "window" for function arguments.
To avoid confusion with the global "window" object we should
avoid using this name as function argument.

Changes for driver.js are left-out and will be done by the
patch on bug 1311041.

--HG--
extra : rebase_source : f15714af3a422476923d096eb8cb837ae474c675
2018-09-18 14:51:21 +02:00
Andreas Tolfsen a115b1e6e9 bug 1490333: marionette: move whenIdle to sync module; r=whimboo
This patch moves the private whenIdle function to sync so it can
be shared across JSMs.

It also changes its semantics somewhat, so that instead of taking
a callback function (suitable for DOM event callbacks) it returns
a promise that is resolved when the main thread becomes idle and
the window has completed an animation frame tick.
2018-09-14 11:38:29 +01:00
arthur.iakab 2cbae6f64f Backed out changeset 3624871612dd (bug 1490333) for Eslint failure 2018-09-13 23:17:07 +03:00