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

4718 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 25aa6940e8 Bug 1370520 - Use SIGUSR1 (245) as exit code for a content crash forced shutdown. r=webdriver-reviewers,gsvelto,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D146289
2022-05-13 13:51:09 +00:00
Joel Maher ab1727d3e3 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 17:41:03 +00:00
Henrik Skupin 21cd47b529 Bug 1726465 - [marionette] In windowless mode allow closing the last content and chrome window. r=webdriver-reviewers,jdescottes
Depends on D134387

Differential Revision: https://phabricator.services.mozilla.com/D145574
2022-05-10 15:08:20 +00:00
Henrik Skupin 6534c7686e Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-10 15:08:20 +00:00
Henrik Skupin 266ffea2f6 Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D142727

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-10 15:08:19 +00:00
criss 70783e1c31 Backed out 8 changesets (bug 1726465) for causing failures on browser_preferences_usage.js. CLOSED TREE
Backed out changeset 4b57310622a0 (bug 1726465)
Backed out changeset 0c6c4a15621a (bug 1726465)
Backed out changeset 081a0f91e0a7 (bug 1726465)
Backed out changeset 60bceb18ff57 (bug 1726465)
Backed out changeset f241655ea876 (bug 1726465)
Backed out changeset 7bc0a3aeb254 (bug 1726465)
Backed out changeset b2f7c710daef (bug 1726465)
Backed out changeset e9b90fd1b4ec (bug 1726465)
2022-05-10 13:59:54 +03:00
Henrik Skupin e519b14de9 Bug 1726465 - [marionette] In windowless mode allow closing the last content and chrome window. r=webdriver-reviewers,jdescottes
Depends on D134387

Differential Revision: https://phabricator.services.mozilla.com/D145574
2022-05-10 09:04:05 +00:00
Henrik Skupin c408cc705d Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-10 09:04:05 +00:00
Henrik Skupin 09b795477f Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D134276

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-10 09:04:05 +00:00
Butkovits Atila 8a2fe790ec Backed out changeset 1ce55e10b927 (bug 1762991) for causing jit failures. CLOSED TREE 2022-05-10 09:41:32 +03:00
Joel Maher f33bac2082 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
updated patch for android_hardware_unittests.py, asking for a review- please look at the interdiff to see recent changes.

Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 00:41:01 +00:00
Cosmin Sabou 56702f5f93 Backed out 6 changesets (bug 1726465) for causing several browser-chrome failures. CLOSED TREE
Backed out changeset 74016350f302 (bug 1726465)
Backed out changeset e7dd44d08121 (bug 1726465)
Backed out changeset 25865657dd3c (bug 1726465)
Backed out changeset f874f1a56157 (bug 1726465)
Backed out changeset 2fea5a6446f3 (bug 1726465)
Backed out changeset 0f96ac926aac (bug 1726465)
2022-05-09 17:01:17 +03:00
Henrik Skupin 4400e1cd48 Bug 1726465 - [marionette] In windowless mode allow closing the last content and chrome window. r=webdriver-reviewers,jdescottes
Depends on D134387

Differential Revision: https://phabricator.services.mozilla.com/D145574
2022-05-09 12:40:57 +00:00
Henrik Skupin 2064b538c6 Bug 1726465 - [marionette-client] Add silent restart option on MacOS to Marionette client. r=webdriver-reviewers,jdescottes
Depends on D134277

Differential Revision: https://phabricator.services.mozilla.com/D134387
2022-05-09 12:40:56 +00:00
Henrik Skupin 0c6c23d3f0 Bug 1726465 - [marionette] Don't wait for initial window when new "moz:windowless" capability is set. r=webdriver-reviewers,jdescottes
Depends on D134276

Differential Revision: https://phabricator.services.mozilla.com/D134277
2022-05-09 12:40:56 +00:00
Cristian Tuns 9462119251 Backed out changeset 60dcc095f627 (bug 1762991) for causing multiple failures (exit status 2). CLOSED TREE 2022-05-06 14:34:10 -04:00
Joel Maher 8e2741c219 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-06 15:01:22 +00:00
Tooru Fujisawa 3adaeb29bb Bug 1765167 - Part 9: Stop using Cu.import in testing/. r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,mossop
Differential Revision: https://phabricator.services.mozilla.com/D144102
2022-05-03 06:32:32 +00:00
Joel Maher 8033908b2d Bug 1751259 - make marionette really use fission. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144342
2022-04-26 18:21:35 +00:00
Julian Descottes a6967b8a65 Bug 1763615 - [marionette] Fix test_add_test_manifest for pytest 7 r=webdriver-reviewers,whimboo
This feature was removed in pytest 5: https://docs.pytest.org/en/6.2.x/deprecations.html#raises-warns-with-a-string-as-the-second-argument

Differential Revision: https://phabricator.services.mozilla.com/D143170
2022-04-07 13:40:04 +00:00
Julian Descottes 069f463d7c Bug 1760259 - [remote] Disable session restore infobar for marionette tests, webplatform tests and geckodriver r=webdriver-reviewers,whimboo
Depends on D141939

Differential Revision: https://phabricator.services.mozilla.com/D141444
2022-03-24 11:26:06 +00:00
Henrik Skupin 7638753eb9 Bug 1759574 - [marionette] Move session store tests to browser/components/sessionstore/test/marionette. r=webdriver-reviewers,dao,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141082
2022-03-21 17:05:26 +00:00
Mitchell Hentges 8d5bcd86f6 Bug 1732795: Resolve upcoming pytest deprecations r=webdriver-reviewers,ahal,whimboo
Following the pytest "deprecations and removals" docs [1], this patch:
* Replaces `@pytest.yield_fixture` with `@pytest.fixture`.
* Replaces `.funcargnames` with `.fixturenames`.
* Uses `Pathlib` parameter instead of the `py.path.local` one in
  associated `pytest_*` hooks.
* Replaces `--strict` with `--strict-markers`

[1] https://docs.pytest.org/en/latest/deprecations.html

Differential Revision: https://phabricator.services.mozilla.com/D138815
2022-02-18 14:27:18 +00:00
Mitchell Hentges e8a78d6118 Bug 1755088: Replace all usages of unittest deprecated aliases r=webdriver-reviewers,ahal,whimboo
There's some unittest-related functions that we heavily lean on
that are deprecated:
https://docs.python.org/3/library/unittest.html#deprecated-aliases

This is a big find-and-replace that was restricted based on files that
matched the pattern `*test*.py` and that weren't in any of the paths
listed in `tools/rewriting/ThirdPartyPaths.txt`.

Differential Revision: https://phabricator.services.mozilla.com/D138608
2022-02-17 15:21:41 +00:00
Julian Descottes c033a12a53 Bug 1754161 - [marionette] Merge Marionette::_unwrap_response in _from_json r=webdriver-reviewers,jgraham
Depends on D138159

_from_json should be redundant with _unwrap_response now.

Differential Revision: https://phabricator.services.mozilla.com/D138160
2022-02-10 16:53:31 +00:00
Julian Descottes 9797428b04 Bug 1754161 - [marionette] Unwrap dictionaries in Marionette::_unwrap_response r=webdriver-reviewers,whimboo
_unwrap_response should be allowed to recursively unwrap dictionaries

Differential Revision: https://phabricator.services.mozilla.com/D138159
2022-02-10 16:53:30 +00:00
Julian Descottes 343524674b Bug 1272255 - Force MOZ_DISABLE_NONLOCAL_CONNECTIONS in Marionette-based tests r=webdriver-reviewers,whimboo,chutten
Differential Revision: https://phabricator.services.mozilla.com/D137691
2022-02-08 11:00:07 +00:00
Norisz Fay 49b6725524 Backed out changeset d260e67d087c (bug 1272255) for causing Bug 1753649 CLOSED TREE 2022-02-04 16:19:54 +02:00
Julian Descottes 0181612b96 Bug 1272255 - Force MOZ_DISABLE_NONLOCAL_CONNECTIONS in Marionette-based tests r=webdriver-reviewers,whimboo,chutten
Differential Revision: https://phabricator.services.mozilla.com/D137691
2022-02-03 19:59:39 +00:00
Julian Descottes 7e953e97a3 Bug 1753003 - Remove non-local connections from telemetry-tests-client r=chutten,whimboo,webdriver-reviewers
Disable telemetry pings from Activity Stream and skip tests relying on search engine pages

Differential Revision: https://phabricator.services.mozilla.com/D137614
2022-02-02 13:46:31 +00:00
Julian Descottes 0da123c75b Bug 1371576 - [marionette] Avoid connections during marionette tests r=webdriver-reviewers,whimboo,Gijs
Depends on D136914

Differential Revision: https://phabricator.services.mozilla.com/D136528
2022-02-01 06:45:53 +00:00
Henrik Skupin 0ec2163f51 Bug 1751954 - [marionette] Improve tests for PageLoadStrategy "none" in test_navigation.py. r=webdriver-reviewers,jgraham
By using an URL that is delaying any response by a certain
amount of time it is easier to check for the PageLoadStrategy
"none" as when we only have a lazily loaded resource where
the element to wait for might immediately be available.

Differential Revision: https://phabricator.services.mozilla.com/D137112
2022-01-28 20:29:10 +00:00
Henrik Skupin c2799a0670 Bug 1749981 - [marionette] Fix test_profile_management.py to use required preferences for external profile. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136462
2022-01-24 17:01:32 +00:00
Henrik Skupin f393548e04 Bug 1750711 - [marionette-client] Keep original capabilities when restarting the application. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134386
2022-01-24 16:25:13 +00:00
Mitchell Hentges 0116a8d491 Bug 1748737: Update deprecated pytest code r=webdriver-reviewers,ahal,whimboo
`pytest` is about to be upgraded, so this patch resolves a bunch of the
issues currently blocking the upgrade.
Most changes done in this patch are described in the "deprecations" page
on the pytest docs:
https://docs.pytest.org/en/latest/deprecations.html#using-class-in-custom-collectors

One undocumented change is that defining a pytest argument as the same name as an
in-scope, imported fixture function, will no longer use that imported function.

Differential Revision: https://phabricator.services.mozilla.com/D136537
2022-01-21 18:21:55 +00:00
Henrik Skupin d1b5c1b85a Bug 1747359 - [marionette] Keep reference to webProgress to unregister progress listener. r=webdriver-reviewers,jdescottes
If the navigation causes the browsing context to be replaced,
the listener cannot be unregistered. As such keep a reference
to the original webProgress instance that can still be used.

Differential Revision: https://phabricator.services.mozilla.com/D135595
2022-01-17 12:31:34 +00:00
Joel Maher ab7ae9ad03 Bug 1743907 - remove webrender from harnesses and taskcluster. r=MasterWayZ,webdriver-reviewers,perftest-reviewers,AlexandruIonescu,whimboo,ahal
Differential Revision: https://phabricator.services.mozilla.com/D134715
2022-01-04 20:07:45 +00:00
Henrik Skupin 9d495a02b5 Bug 1663802 - [marionette] Fix syntax error for reset_addons() in test_addons.py. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134493
2021-12-22 15:38:13 +00:00
Henrik Skupin 40c686eb47 Bug 1144075 - [marionette-client] Allow to restart Firefox in safe mode. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134324
2021-12-21 18:46:37 +00:00
Henrik Skupin b535a82bf8 Bug 1144075 - [marionette-client] Remove obsolete restart code from before Firefox 55. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134323
2021-12-21 18:46:36 +00:00
Joel Maher 63bf096aef Bug 1743907 - Remove webrender annotation from manifestparser manifests. r=ahal,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D132682
2021-12-03 16:04:29 +00:00
David Burns d1ba70273a Bug 1700073: Add Get Shadow Root to Marionette. r=webdriver-reviewers,jgraham,whimboo
This adds the features as described in
https://w3c.github.io/webdriver/#get-element-shadow-root

Differential Revision: https://phabricator.services.mozilla.com/D110941
2021-12-01 14:57:16 +00:00
Drew Willcoxon 4c184ca81b Bug 1741479 - Turn on Merino as a Firefox Suggest source. r=nanj,webdriver-reviewers,whimboo
We only need to default `browser.urlbar.merino.enabled` to true. If the user has
opted in (either through the modal or by toggling on the data collection pref in
the prefs UI), then `quicksuggest.dataCollection.enabled` will also be true and
we'll fetch Merino suggestions. Otherwise it will be false and we won't fetch
Merino suggestions. That logic is implemented here:
https://searchfox.org/mozilla-central/rev/9a5f36b0ddb9cb8ae556fc5b45f8ccea0f0da6f8/browser/components/urlbar/UrlbarProviderQuickSuggest.jsm#144

Note this defaults the pref to true for everyone, even users in offline. It make
senses now that we have a separate toggle for data collection in the preferences
UI. Even offline users can opt in to Merino and data collection.

I also updated the various sets of prefs for test suites so that the Merino
endpoint URL is empty when running tests so they don't hit the network. I could
have forced `merino.enabled` to false instead, but setting the endpoint URL has
a couple of benefits, although admittedly they're very small:

* It runs a little more of the Merino code path (i.e., calls
  `_fetchMerinoSuggestions`)
* It lets Merino tests set only one pref, the endpoint URL, instead of two, both
  the endpoint pref and enabled pref

Differential Revision: https://phabricator.services.mozilla.com/D131988
2021-11-29 17:26:15 +00:00
Sylvestre Ledru 70be2344fc Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici
This changed with this:
https://github.com/psf/black/pull/1740

Depends on D130964

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-22 22:10:03 +00:00
Iulian Moraru 897bb9d353 Backed out 2 changesets (bug 1707591) for causing python mozlint failures on test_yaml.py. CLOSED TREE
Backed out changeset a730ab2d0dbe (bug 1707591)
Backed out changeset 0269849fd7ef (bug 1707591)
2021-11-12 18:44:36 +02:00
Sylvestre Ledru c1b5edd8be Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=webdriver-reviewers,whimboo,gerard-majax
This changed with this:
https://github.com/psf/black/pull/1740

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-12 15:06:56 +00:00
Henrik Skupin a11f894d94 Bug 1736323 - [marionette] "WebDriver:NewSession" has to wait for the very first tab to finish loading. r=webdriver-reviewers,jdescottes
If the New Session command doesn't wait for the initial tab
to have finished loading, any other command send right away
could fail because the document could be replaced.

Differential Revision: https://phabricator.services.mozilla.com/D130158
2021-11-02 18:40:32 +00:00
Alex Hochheiden 69ccd3cf23 Bug 1718878 - Updates to the build system to enable compatibility with Python 3.10 (Mainly regarding collections.abc) r=mhentges,webdriver-reviewers,whimboo
Previously, collections.abc was available from the collections import. In Python
3.10, they were explicitly moved to collections.abc. As such, any references to
collections abstract base classes need to import collections.abc in Python 3.10.

More reading here: https://docs.python.org/3/library/collections.abc.html

Differential Revision: https://phabricator.services.mozilla.com/D128838
2021-10-27 13:35:13 +00:00
Andrew Halberstadt ba77e95f6d Bug 1736859 - [marionette] Explicitly turn off 'fission.autostart' if --enable-fission is not used, r=webdriver-reviewers,jgraham
The 'fission.autostart' pref is about to change defaults which means that if we
don't explicitly disable it when '--enable-fission' *is not* passed in, we'll
actually be running with it enabled.

Eventually we should remove '--enable-fission' in favour of '--disable-fission',
but that can be follow-up work once the pref has been switched.

Depends on D129309

Differential Revision: https://phabricator.services.mozilla.com/D129399
2021-10-27 13:33:48 +00:00
Mark Banner 6cbcdd15c2 Bug 1736061 - Ensure second page is loaded in test_switch_window_content.py test_switch_to_unloaded_tab before continuing. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D128618
2021-10-16 07:57:55 +00:00