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

4412 Коммитов

Автор SHA1 Сообщение Дата
Cosmin Sabou b6cb6fdba5 Bug 1674172 - Fix bc failures on marionette/content/driver.js. r=jdescottes
CLOSED TREE
2020-11-05 15:42:20 +02:00
Julian Descottes a37b87f7dd Bug 1674172 - [marionette] Move Marionette parent actor cleanUp to a static helper r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D95834
2020-11-05 10:30:20 +00:00
Julian Descottes f5505326a1 Bug 1672788 - [marionette] Record html elements in XUL documents as ChromeWebElements r=marionette-reviewers,whimboo,maja_zf
Introduce a new helper element.isInXULDocument that should be used when we need to infer the context (chrome or content) from a given element.
The existing element.isXULElement is still relevant and should be used to detect actual XUL elements, which need to be handled differently from HTML elements.
Use the new helper isInXULDocument:
- in element.from, to decide to create ChromeWebElement or ContentWebElement for a given node.
- in element.add, to infer the context

Differential Revision: https://phabricator.services.mozilla.com/D94907
2020-11-05 10:27:21 +00:00
Henrik Skupin b1806d83eb Bug 1673823 - [marionette] Use navigation events from the actor and not the framescript when actors are enabled. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95179
2020-11-04 15:53:18 +00:00
Henrik Skupin a3dc405c30 Bug 1673823 - [marionette] Rename actor MarionetteReftestFrame to MarionetteReftest. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95178
2020-11-03 14:53:44 +00:00
Henrik Skupin 551c9220d6 Bug 1673823 - [marionette] Rename actor MarionetteFrame to MarionetteCommands. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95177
2020-11-03 14:53:37 +00:00
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 10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell 6d007967df Bug 1671983 - Part 6: Stop turning off privileged content process in marionette_driver, r=mconley,marionette-reviewers,whimboo
This caused some local breakage when using `mach run` due to the privileged
content process being disabled, but the startup cache being enabled (I think?) -
removing it allowed `mach run` to use the privilegedremote process again.

I think the issue which caused this pref to be added here has been fixed now, so
it shouldn't be necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D94643
2020-11-04 00:55:38 +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 497ebe2d8b Bug 1674158 - [marionette] waitForNavigationCompleted has to clean-up registered listeners. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D95176
2020-10-30 15:28:20 +00:00
Julian Descottes 38fcbbd955 Bug 1673884 - [marionette] Fix MAX_ATTEMPTS trace log in MarionetteFrameActorProxy r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D94999
2020-10-29 09:30:38 +00:00
Julian Descottes ee0bae9190 Bug 1673880 - [marionette] Fix suggested syntax for --webdriver-arg in testing documentation r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D94996
2020-10-28 17:50:29 +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
Jean-Yves Avenard 5cee70cce8 Bug 1572687 - Disable Gfx/Media sanity test during marionette tests. r=mattwoodrow,marionette-reviewers,whimboo,webdriver-reviewers
We know that this test will never fail with any of the hardware used by our test infrastructure. It also force create a RDD process even when not actually used in the tests; skewing the results.

Differential Revision: https://phabricator.services.mozilla.com/D94804
2020-10-28 01:12:57 +00:00
Maja Frydrychowicz 594daa7bbb Bug 1671370 - [marionette] Clarify use of current window global in |element| docstrings r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D94773
2020-10-27 16:55:31 +00:00
Maja Frydrychowicz c3699acd8b Bug 1671370 - [marionette] Provide current Window when checking stale element r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D94675
2020-10-27 16:55:29 +00:00
Julian Descottes 109cab19b8 Bug 1671347 - [marionette] Limit the MarionetteFrameActor proxy to 10 retry attempts r=marionette-reviewers,whimboo
Depends on D94086

Differential Revision: https://phabricator.services.mozilla.com/D94722
2020-10-27 10:04:42 +00:00
Julian Descottes a14326cffb Bug 1671347 - [marionette] Add proxy for MarionetteFrameActor to retry queries after an AbortError r=marionette-reviewers,whimboo,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D94086
2020-10-27 10:03:43 +00:00
Henrik Skupin 15649ee9b8 Bug 1672758 - [marionette] Observe the correct browsing context for navigation events. r=marionette-reviewers,maja_zf
While all navigation related commands trigger the navigation through
the top-level browsing context, observing the page load events still
has to happen in the current browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D94649
2020-10-26 18:58:31 +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
Henrik Skupin b19c361d72 Bug 1305822 - [marionette] WebDriver:SwitchToWindow should switch back to the top-level browsing context. r=marionette-reviewers,webdriver-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D94709
2020-10-26 16:09:48 +00:00
Jared Wein 3d2a8005c8 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers,marionette-reviewers,whimboo
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-26 02:32:07 +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
Henrik Skupin 84c32eb55b Bug 1670175 - [marionette] Use webEl as argument in MarionetteFrameParent. r=marionette-reviewers,maja_zf
Element references in the parent process are always WebElements.
As such rename element arguments of the parent actor methods,
but still pass them as elements to the child actor.

Differential Revision: https://phabricator.services.mozilla.com/D94438
2020-10-22 14:52:27 +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 1d2e114c25 Bug 1671770 - [marionette] Fix browsing context checks for "WebDriver:SwitchToFrame". r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D94325
2020-10-21 16:02:53 +00:00
Henrik Skupin a7176578c3 Bug 1671372 - [marionette] "WebDriver:ReleaseActions" has to check the current and not top-level browsing context. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D93751
2020-10-19 13:02:56 +00:00
Henrik Skupin b51b43a0ee Bug 1666204 - [marionette] Use "browsing-context-discarded" notification to detect a closing frame. r=marionette-reviewers,maja_zf
When waiting for a navigation to complete the
"browsing-context-discarded" observer notification
is used to determine if the currently selected
browsing context has been closed or just replaced
due to a remoteness change.

Differential Revision: https://phabricator.services.mozilla.com/D93747
2020-10-16 16:58:56 +00:00
Henrik Skupin 40f4853ce1 Bug 1669698 - [marionette] Use dedicated "marionette-listening" notification to inform the browser when marionette is active. r=marionette-reviewers,jdescottes,Gijs
By not re-using the "remote-listening" observer topic in Marionette
allows us to send different data through the observer notification.

This also prevents a crash in the Remote Agent component, which
expects a string, and not a boolean value to receive in data.

Differential Revision: https://phabricator.services.mozilla.com/D93513
2020-10-15 16:04:44 +00:00
Julian Descottes 6e6f570643 Bug 1670295 - [marionette] Port Marionette:singleTap to use JSWindowActors r=marionette-reviewers,whimboo,maja_zf
Depends on D93365

Differential Revision: https://phabricator.services.mozilla.com/D93325
2020-10-14 23:06:55 +00:00
Julian Descottes 891c58ed1a Bug 1670295 - [marionette] Move legacy touch helpers from listener.js to legacyaction.js r=marionette-reviewers,whimboo,maja_zf
Depends on D93324

Move singleTap and dependencies to legacyaction.js in order to reuse them in the JSWindowActor.

Differential Revision: https://phabricator.services.mozilla.com/D93365
2020-10-14 22:22:15 +00:00
Julian Descottes b932959de4 Bug 1670295 - [marionette] Remove unused message Marionette:emitTouchEvent from listener::emitTouchEvent r=marionette-reviewers,whimboo,maja_zf
The emitTouchEvent message seems no longer used.
The code branch is preserved to log a debug message instead.

Differential Revision: https://phabricator.services.mozilla.com/D93324
2020-10-14 18:34:11 +00:00
Julian Descottes 2345d6df04 Bug 1648444 - [marionette] Use JSWindowActors for marionette reftests navigation r=marionette-reviewers,whimboo,jgraham,maja_zf
The goal is to stop using the listener.js framescript to support navigation in reftests using marionette.
Instead we will port the current logic to JSWindowActor.

Differential Revision: https://phabricator.services.mozilla.com/D92648
2020-10-14 19:44:26 +00:00
Henrik Skupin 3215ff5067 Bug 1666755 - [marionette] Run beforeunload timer after the click event has been received. r=marionette-reviewers,jdescottes
Due to delays when the click and the appropriate event will actually
happen within the child process, the beforeunload timer with 200ms
timeout needs to be run after the click event has been received.

Differential Revision: https://phabricator.services.mozilla.com/D93194
2020-10-13 21:00:56 +00:00
smolnar c25b8b29fe Backed out changeset cbae6d44d4da (bug 1648444) for causing test_reftest.py failures. CLOSED TREE 2020-10-14 14:29:46 +03:00
Julian Descottes 954aff6f9e Bug 1648444 - [marionette] Use JSWindowActors for marionette reftests navigation r=marionette-reviewers,whimboo,jgraham
The goal is to stop using the listener.js framescript to support navigation in reftests using marionette.
Instead we will port the current logic to JSWindowActor.

Differential Revision: https://phabricator.services.mozilla.com/D92648
2020-10-14 09:03:00 +00:00
Emilio Cobos Álvarez ff1f98dfc8 Bug 1602915 - Remove nsIBrowserDOMWindow.isTabContentWindow. r=mossop,marionette-reviewers,whimboo
This only works for non-e10s and it also seems superseded by the
mPendingClose as per the comment.

Differential Revision: https://phabricator.services.mozilla.com/D92003
2020-10-13 16:58:37 +00:00
championshuttler fc9490e421 No bug - Change the links from bugsahoy to codetribute.r=sylvestre,marionette-reviewers,whimboo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93257
2020-10-13 10:36:12 +00:00
Csoregi Natalia a8fee0d78a Backed out changeset 91bec46347ea for causing bustage due to CONTRIBUTING.md changes. CLOSED TREE 2020-10-12 22:41:43 +03:00
championshuttler 02ab39abbd No bug - Change the links from bugsahoy to codetribute.r=marionette-reviewers,whimboo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93257
2020-10-12 19:15:43 +00:00
Emilio Cobos Álvarez 4e68e78542 Bug 1669925 - Add a printing.trigger keyed scalar to record what triggers a particular print dialog. r=jwatt,marionette-reviewers,maja_zf
In order to avoid over/under-counting, we need to treat window.print()
specially. The new UI was using aOpenWindowInfo.isForPrintPreview for
that, but that doesn't quite work for the old UI (because it will
trigger a regular print, not a preview).

But since isForPrintPreview was only really needed to distinguish
window.print(), just rename it and set it to true when the old UI is
triggered by window.print() as well.

Differential Revision: https://phabricator.services.mozilla.com/D92925
2020-10-09 14:59:46 +00:00
Henrik Skupin 50376d4672 Bug 1669917 - [marionette] Port "WebDriver:TakeScreenshot" to JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D92895
2020-10-09 07:39:41 +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