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

810 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta b86f005446 Bug 1673071 - Disable failing tests. r=jrmuizel,marionette-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D95429
2020-11-03 23:05:08 +00:00
Kartikaya Gupta 5b1b570dcc Bug 1673071 - Update marionette mozinfo object with correct webrender status. r=whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95428
2020-11-03 23:05:10 +00:00
Razvan Maries 156298851f Backed out 4 changesets (bug 1673071) for perma failures on grid-minimum-contribution-baseline-shim-vertical-lr.html. CLOSED TREE
Backed out changeset a8ad01797ee0 (bug 1673071)
Backed out changeset f2ed8ed80bf2 (bug 1673071)
Backed out changeset 34d6c0fbfeef (bug 1673071)
Backed out changeset d6857ecf3c81 (bug 1673071)
2020-11-04 00:56:16 +02:00
Kartikaya Gupta 7bfa94e01a Bug 1673071 - Disable failing tests. r=jrmuizel,marionette-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D95429
2020-11-03 14:59:47 +00:00
Kartikaya Gupta 607a620373 Bug 1673071 - Update marionette mozinfo object with correct webrender status. r=whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95428
2020-11-03 21:14:07 +00:00
Henrik Skupin eeb2989064 Bug 1660168 - [marionette] Enable usage of Marionette's JSWindowActor by default for Fission builds. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D94898
2020-10-28 08:21:45 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Maja Frydrychowicz c0bcd174a4 Bug 1365886 - [marionette] Allow performActions to operate on chrome elements r=marionette-reviewers,jdescottes,whimboo
Change error handling and initialization on the server side.

On the Marionette Python client side, add a `kind` attribute to HTMLElement
to distinguish chrome elements from content elements in the action sequence
sent to the server. This change is necessary for `performActions` in contrast to
other command implementations because of the extra parsing step done by
`actions.Chain.fromJson` on the server side.

Note that for the time being Marionette's ReferenceStore does not
distinguish chrome and content elements (Bug 1672788), so this client-side
change is correct but not strictly necessary.

Differential Revision: https://phabricator.services.mozilla.com/D93778
2020-10-23 15:32:08 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Henrik Skupin bdfe3a3367 Bug 1662803 - [marionette] Add support for handling alerts and dialogs via JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D92883
2020-10-08 16:15:00 +00:00
Maja Frydrychowicz f3d7c8e518 Bug 1662468 - [marionette] Remove WebDriver:SwitchToShadowRoot r=marionette-reviewers,whimboo
geckodriver doesn't support it and there are no web-platform-tests
for it. Its only usage is in internal unit tests.

Differential Revision: https://phabricator.services.mozilla.com/D92788
2020-10-07 19:02:36 +00:00
James Graham 780b07487f Bug 1668458 - Ensure paths passed to Addons.install use os path separators only, r=marionette-reviewers,whimboo
On Windows we can end up with a mixture of / and \ which makes the install fail.

Differential Revision: https://phabricator.services.mozilla.com/D92229
2020-10-06 14:01:26 +00:00
Noemi Erli 112f24b054 Backed out 2 changesets (bug 1668458) for causing web platform test failures CLOSED TREE
Backed out changeset 8739d75e13dc (bug 1668458)
Backed out changeset e45a73a47c37 (bug 1668458)
2020-10-05 18:24:36 +03:00
James Graham d2267a9f79 Bug 1668458 - Ensure paths passed to Addons.install use os path separators only, r=marionette-reviewers,whimboo
On Windows we can end up with a mixture of / and \ which makes the install fail.

Differential Revision: https://phabricator.services.mozilla.com/D92229
2020-10-05 14:10:18 +00:00
Ted Campbell 1d99957f22 Bug 1668565 - Update help for --setpref in Marionette r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D92070
2020-10-02 07:52:52 +00:00
Henrik Skupin 51a33ed7e5 Bug 1662460 - [marionette] Port WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript to JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D91609
2020-10-01 21:14:21 +00:00
Olli Pettay 8a508eaa66 Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo
In many cases with wpt, most of the tests in the file pass, but it is rather time consuming to annotate
.ini files case by case.

Differential Revision: https://phabricator.services.mozilla.com/D91977
2020-10-01 10:23:47 +00:00
Henrik Skupin a333c00f4c Bug 1667934 - [marionette] Improve performance of quit and restart unit tests. r=marionette-reviewers,jdescottes,maja_zf
By reducing the shutdown and startup timeouts for the appropriate
tests the duration of all the quit and restart tests can be reduced
from 2 minutes to 1 minute.

Also the restart command didn't take the startup timeout into account,
which has been added with this patch.

Differential Revision: https://phabricator.services.mozilla.com/D91710
2020-09-30 15:49:16 +00:00
Maja Frydrychowicz b5d63d2482 Bug 1662790 - [marionette] Re-enable test_is_displayed for chrome scope r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D91464
2020-09-28 15:28:57 +00:00
Henrik Skupin d7cd6f04af Bug 1667377 - [marionette] Always call navigation callback in waitForNavigationCompleted. r=marionette-reviewers,maja_zf
Even in the case of no load event expected, or the page load strategy
as set to None the callback that triggers the navigation always has
to be called.

Depends on D91443

Differential Revision: https://phabricator.services.mozilla.com/D91444
2020-09-25 15:10:22 +00:00
Henrik Skupin 119c89ab8b Bug 1662480 - [marionette] - Port WebDriver:GetElementRect to JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D90080
2020-09-25 15:01:20 +00:00
Kris Maglione bbfbd2f113 Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-25 02:01:15 +00:00
Razvan Maries 8de1e9f262 Backed out changeset 737f0e3e2f94 (bug 1660057) for xpcshell perma failures. CLOSED TREE 2020-09-24 23:25:54 +03:00
Henrik Skupin 08d5370559 Bug 1665437 - [marionette] Fix race between "WebDriver:CloseChromeWindow" and next browsing context check. r=marionette-reviewers,maja_zf
Similar to closing a tab the internal browsing contexts
need to be nullified. This is necessary because browsing
contexts are asynchronously discarded and garbage collected.

Also the "unload" event as currently used to wait for the
chrome window to be closed fires too early. Instead the
"xul-window-destroyed" observer notification needs to be used.

Differential Revision: https://phabricator.services.mozilla.com/D91296
2020-09-24 19:02:26 +00:00
Kris Maglione 04dc79653a Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-24 18:35:58 +00:00
Maja Frydrychowicz a68b55c668 Bug 1662475 - [marionette] Port WebDriver:ElementClear to JSWindowActor r=marionette-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D90606
2020-09-23 19:42:19 +00:00
Henrik Skupin 44a6b1e1f3 Bug 1665489 - [marionette] Wait for the expected URL when navigation starts from inside a frame. r=marionette-reviewers,maja_zf
If a click triggers a navigation in the top-browsing context from
inside a frame, the frame gets removed and as such the "Element Click"
command immediately returns. As such waiting for the navigation to
be finished has to be taken care of by the test itself.

Differential Revision: https://phabricator.services.mozilla.com/D90976
2020-09-23 01:45:34 +00:00
Henrik Skupin f9391188b1 Bug 1666198 - [marionette] Stabilize element click unit tests. r=marionette-reviewers,maja_zf
First, by running all the tests in their own tab reduces the risk
of bad interactions between tests.

Also the legacy element click tests actually never tested the
legacy mode because "moz:webdriverClick" has been set to "true"
by default, but the capability for the tests hasn't been changed
to point to false.

Differential Revision: https://phabricator.services.mozilla.com/D90879
2020-09-21 20:38:46 +00:00
Maja Frydrychowicz e45fb60afb Bug 1582736 - Open new tab per navigation when testing acceptInsecureCerts r=marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D90704
2020-09-18 14:49:43 +00:00
Henrik Skupin 48a0e53c0a Bug 1582736 - [marionette] Navigation tests of TestTLSNavigation needs to run in their own tab. r=marionette-reviewers,maja_zf
Because TestTLSNavigation is not based off BaseNavigationTestCase
each of its tests is run inside the initial tab. This could cause
bad interactions between tests and should be avoided.

Differential Revision: https://phabricator.services.mozilla.com/D90466
2020-09-17 00:26:24 +00:00
Julian Descottes f738b0b163 Bug 1662455 - [marionette] Add unit test for getText in chrome context r=marionette-reviewers,maja_zf,whimboo
Depends on D90298

Differential Revision: https://phabricator.services.mozilla.com/D90363
2020-09-16 20:17:50 +00:00
Dorel Luca 8c2d120be5 Backed out 4 changesets (bug 1662455) for Eslint failures in gecko/testing/marionette/driver.js. CLOSED TREE
Backed out changeset 272a44797a77 (bug 1662455)
Backed out changeset 19ff0827dc06 (bug 1662455)
Backed out changeset a476aa0a9bfa (bug 1662455)
Backed out changeset dd580e17ab5b (bug 1662455)
2020-09-16 23:13:05 +03:00
Julian Descottes e86d80eb40 Bug 1662455 - [marionette] Add unit test for getText in chrome context r=marionette-reviewers,maja_zf,whimboo
Depends on D90298

Differential Revision: https://phabricator.services.mozilla.com/D90363
2020-09-16 19:44:29 +00:00
Henrik Skupin 71f662c9a8 Bug 1665210 - [marionette] Skip TestNavigate.test_navigate_top_frame_from_nested_context for Fission. r=marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D90353
2020-09-16 08:41:16 +00:00
Henrik Skupin 80384909ce Bug 1493108 - [marionette] Each command has to check the appropriate BrowsingContext for existence. r=marionette-reviewers,maja_zf,jdescottes
Given by the WebDriver specification each command has to check if
the appropriate browsing context it operates in is still open. If
it's not the case a "no such window" error will be thrown.

Until now the code only checked the top-level browsing context for
each of the supported commands. That means if the current browsing
context was not open anymore a command running in a specific frame
of the website has thrown unknown or type errors.

That change makes our implementation WebDriver compliant.

Differential Revision: https://phabricator.services.mozilla.com/D88951
2020-09-15 18:33:45 +00:00
Luca Greco a67ba2fcd8 Bug 1663125 - Fix registered service workers missing after restart and cover it with a marionette test. r=asuth,whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90189
2020-09-15 14:54:12 +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 48cb3eb951 Bug 1663641 - [marionette] Don't return the current URL with "about:error" prefixes. r=marionette-reviewers,maja_zf
This regressed by the patch on bug 1658928, which changed the type of
URL Marionette returns. While before we were returning the visible
URL from the location bar, the new and broken behavior includes
"about:error" prefixes for broken navigation requests.

Differential Revision: https://phabricator.services.mozilla.com/D89936
2020-09-14 19:33:11 +00:00
Joel Maher 26804c202e Bug 1664497 - Adjust test expectations for OSX with no EDID dongle. r=bc,preferences-reviewers,marionette-reviewers,whimboo,Gijs
Adjust test expectations for OSX with no EDID dongle.

Differential Revision: https://phabricator.services.mozilla.com/D89934
2020-09-12 10:12:58 +00:00
Ting-Yu Lin ad069fecf2 Bug 1657256 - Always update the cached mImaginaryCaretRect in SetPosition(). r=marionette-reviewers,mats,whimboo
During scrolling, the caret's position relative to the
custom-content-container (cached in mImaginaryCaretRectInContainerFrame)
may not change, but its position relative to root frame can (cached in
mImaginaryCaretRect).

We need to update mImaginaryCaret each time we are in SetPosition().
Otherwise, the caret still remembers its pre-scrolling old position next
time when we drag it, resulting the caret jumping to its old
pre-scrolling position suddenly.

Note this bug only occurs on the root scroll frame where the APZ is
enabled, not in any sub-scroll frames where APZ is disable when the
caret is shown.

Differential Revision: https://phabricator.services.mozilla.com/D88638
2020-08-31 17:54:19 +00:00
Anny Gakhokidze 6d995898a0 Bug 1589102 - Part 17: Don't set chrome context in Marionette reftest unit tests r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D88518
2020-08-28 17:32:16 +00:00
Henrik Skupin a0042bce82 Bug 1661495 - [marionette] Improve tracking of browsing contexts. r=marionette-reviewers,maja_zf
With the changes on bug 1654628 we do not completely track the current
browsing contexts, but loose the reference when windows are closed.
With this patch the appropriate browsing contexts will be correctly
reset.

Also the commands for switching frames are operating on content
windows and as such are not allowed to update the currently
selected chrome browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D88441
2020-08-28 05:09:18 +00:00
Henrik Skupin f1954e832e Bug 1660426 - [wdspec] Improve tests for "Get Title" and add site-isolation test. r=maja_zf,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88016
2020-08-25 19:32:48 +00:00
Henrik Skupin e7ca7c2a3f Bug 1660426 - [marionette] Make "WebDriver:GetTitle" Fission compatible. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D88015
2020-08-25 19:47:28 +00:00
Henrik Skupin 5813c7d37e Bug 1658928 - [marionette] Make "WebDriver:GetCurrentURL" Fission compatible. r=marionette-reviewers,maja_zf
By moving out the "currentURI" getter from the Browser class,
and making it available on the driver other parts of Marionette
like reftests can make use of the "currentURL" property.

Also a couple of methods expressed the passed-around data as
instance of nsIURI whereby it was a string or an instance of
URL. The patch fixes that to always pass-around URL instances.

By doing these changes the command will be Fission compatible now.

Differential Revision: https://phabricator.services.mozilla.com/D87572
2020-08-21 12:50:43 +00:00
Henrik Skupin de474a283e Bug 1654628 - [marionette] Port WebDriver:SwitchToFrame and WebDriver:SwitchToParentFrame to JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D84708
2020-08-19 17:24:24 +00:00
Henrik Skupin 7dad18b103 Bug 1654628 - [marionette] Ease handling of browsing contexts and current window. r=marionette-reviewers,maja_zf
With this patch a couple of changes are made to generally make it easier
to handle browsing contexts, and the current window. Basically this includes:

Since bug 1652932 landed the driver class keeps a reference
to the currently selected browsing context in content. As such
there is no need anymore to retrieve it from the framescript
each and every time. As side-effect this also removes the
async requirement and makes code better to read.

Similar handling for the browsing context exists for chrome scope,
which is also cached now, and no longer has to be retrieved via
the current window. With specifically this change "getCurrentURL"
for chrome scope correctly reports the location of the top-browsing
context, and not from the current one.

In the early days of Marionette a feature has been added to
work with embedded xul:browser elements. Those elemenets outside
of the tab browser have been tracked with "curFrame". Given that
until now there wasn't a single case to handle that, and the
code path is basically untested, it will be removed for now.

Differential Revision: https://phabricator.services.mozilla.com/D84707
2020-08-19 13:43:52 +00:00