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

3837 Коммитов

Автор SHA1 Сообщение Дата
David Burns a57f8b70fd Bug 1525829 - Add buildID to returned capabilities list for Marionette; r=ato
Add buildID to returned list of capabilities when a new session is started with
Marionette. This new capability will live in moz:buildID.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 10:23:30 +00:00
Geoff Brown 07a901c2e7 Bug 1526914 - Skip Mn test_execute_new_sandbox on Android; r=me,a=test-only 2019-02-12 09:24:16 -07:00
Geoff Brown a88a5434b6 Bug 1526913 - In Mn test_cookies.py allow for some clock difference between host and device; r=whimboo 2019-02-12 09:24:16 -07:00
Geoff Brown 88dd7e5076 Bug 1526084 - In Mn test_capabilities.py, allow for multiple links to sdcard; r=whimboo 2019-02-12 09:24:16 -07:00
Dhyey Thakore 8bb76c4883 Bug 1526650 - Fix broken links in Marionette Intro docs r=ato
Differential Revision: https://phabricator.services.mozilla.com/D19279

--HG--
extra : moz-landing-system : lando
2019-02-10 17:54:15 +00:00
Andrew Halberstadt 01ca807367 Bug 1515746 - [flake8] Unsupport subdir .flake8 files and use new 'per-file-ignores' config instead, r=egao
This removes all .flake8 files except for the one at the root of the repo.
Instead we use the new 'per-file-ignores' config introduced in 3.7. To ignore
specific errors in a subdirectory, add a line like this to the root .flake8:

[per-file-ignores]
    path/to/subdir/*: E100, F200, ...

The reasons for this change are:

1. Unblock flake8 blacklist (bug 1367092).
2. Simplify configuration and code.
3. Encourage more consistent styling.
4. Improve performance.
5. Greater editor consistency.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:17:02 +00:00
Brian Grinstead 04c18529e4 Bug 1487065 - Implement popup-notification as a Custom Element r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17699

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/popupnotification.js
extra : moz-landing-system : lando
2019-02-07 22:16:26 +00:00
Nick Alexander 2b09060ef2 Bug 1496773 - Part 2: Route Marionette startup via new "marionette-startup-requested" notification. r=ato
This just adds a layer of indirection between existing startup paths and a
new startup path that GeckoView(-consumers) will exploit.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 18:15:32 +00:00
Nick Alexander 813f94bb19 Bug 1496773 - Part 1: Feature test and accommodate navigator:geckoview inside Marionette. r=ato
This lays the foundation for Marionette to work inside
GeckoView-consuming Apps.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 18:15:52 +00:00
Andreas Tolfsen 8411b140ec bug 1523962: marionette, geckodriver: fix published docs location; r=ahal
Sphinx creates an additional directory level unless the entry starts
with "/".  By using the aboslute path we can define where we want
the documentation to end up.

This causes the geckodriver and Marionette documentation to move from:

	/testing/marionette/marionette
	/testing/geckodriver/geckodriver

to:

	/testing/marionette
	/testing/geckodriver

Depends on D18088

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

--HG--
extra : moz-landing-system : lando
2019-02-04 13:28:47 +00:00
Andreas Tolfsen 5e7c80cad2 bug 1523962: marionette: correct link to client docs; r=ahal
Depends on D18087

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

--HG--
extra : moz-landing-system : lando
2019-02-04 13:26:47 +00:00
Andreas Tolfsen 0c103a1c24 bug 1523962: marionette: publish client and harness api docs to firefox-source-docs.m.o; r=ahal
https://marionette-client.readthedocs.io/en/master/ is out of date
and generates a lot of warnings. As we are intending to decommission
the public PyPI release of marionette_driver, it makes sense to
publish the API documentation to https://firefox-source-docs.mozilla.org/
instead.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 18:53:57 +00:00
Henrik Skupin f6d90f1893 Bug 1524243 - [marionette] Correct calculation of timeout from milliseconds to seconds. r=jgraham
Fractions of a second are lost because the division
in getting the timeout value operates on decimal valus.
As such a timeout of 100ms will result in 0ms.

Depends on D18214

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

--HG--
extra : moz-landing-system : lando
2019-01-31 14:31:11 +00:00
Henrik Skupin a655888574 Bug 1524243 - [marionette] Correctly handle script_timeout for WebDriver:{ExecuteScript,ExecuteAsyncScript}. r=jgraham
This fixes the following regressions as introduced by
bug 1510929 for the Marionette client.

1) The custom timeout as set isn't reset if the
   script times out.

2) Fractions of a second for the script timeout are
   lost because the division operates on decimal valus.
   As such a timeout of 100ms will result in 0ms.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 14:25:26 +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 51b9213cce Bug 1522413 - [marionette] Register event listeners before focusing the new window in WindowManagerMixin.open_chrome_window(). r=ato
Differential Revision: https://phabricator.services.mozilla.com/D17473

--HG--
extra : moz-landing-system : lando
2019-01-25 13:58:15 +00:00
Henrik Skupin e34e2827b5 Bug 1522408 - [marionette] Restore maximized window first before entering fullscreen or minimizing the window. r=ato
The window should always be restored first to the normal window state,
before a special state like fullscreen or minimized can be entered.

Right now this isn't done when going from a maximized window into
fullscreen mode, or when minimizing the window.

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

--HG--
extra : moz-landing-system : lando
2019-01-25 13:16:24 +00:00
Henrik Skupin 6c1dfed37e Bug 1521527 - [marionette] Don't raise timeout errors for all window manipulation commands. r=ato
Marionette should do its best to get the browser into the requested
window state, but if it is not possible to do so, it shouldn't raise
a timeout error. This is mostly the case when running tests under
xvfb with no window manager running. Instead we just log the
message for further investigation.

Further the timeout value has to be set to a value which wouldn't
cause the commands to inappropriately fail due to animations, or
a slow machine.

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

--HG--
extra : moz-landing-system : lando
2019-01-21 18:39:30 +00:00
Agboola Mukhtar 8f406c55f0 Bug 1517442 - [marionette] Use current instead of default startup time in raise_for_port r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D16609

--HG--
extra : moz-landing-system : lando
2019-01-16 19:54:53 +00:00
David Burns 4ba561d5fc Bug 1520137: Update documentation pointing to #interop instead of #ateam r=whimboo
As we move away from #ateam we need to make sure we that we point people to
the correct IRC Channel

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

--HG--
extra : moz-landing-system : lando
2019-01-15 14:14:10 +00:00
Hiroyuki Ikezoe 6d4cb007b1 Bug 1423013 - Set explicit minimum-scale=1 to avoid overflow:hidden area reachable and visible. r=botond
Depends on D15344

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

--HG--
extra : moz-landing-system : lando
2019-01-15 09:48:06 +00:00
Oana Pop Rus e6a470fee9 Backed out 3 changesets (bug 1423013) for failing at reftests/transform/compound-1a.html on a CLOSED TREE
Backed out changeset 91624c065046 (bug 1423013)
Backed out changeset 050a2ef2393d (bug 1423013)
Backed out changeset db57901030e9 (bug 1423013)
2019-01-15 09:35:57 +02:00
Hiroyuki Ikezoe f3f82aedc4 Bug 1423013 - Set explicit minimum-scale=1 to avoid overflow:hidden area reachable and visible. r=botond
Depends on D15344

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

--HG--
extra : moz-landing-system : lando
2019-01-15 03:27:53 +00:00
Henrik Skupin b67d0c309e Bug 1478358 - [marionette] Don't wait for resize events in "Set Window Rect". r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16338

--HG--
extra : moz-landing-system : lando
2019-01-14 15:24:54 +00:00
Geoffrey Sneddon 461f107cb9 Bug 1519552 - Disable test_reftest.py on Android r=jgraham,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D16456

--HG--
extra : moz-landing-system : lando
2019-01-14 14:50:15 +00:00
Geoffrey Sneddon 49eaed4f5c Bug 1510696 - Make width/height of reftests configurable over Marionette r=jgraham,ato
Depends on D13282

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:11:30 +00:00
Geoffrey Sneddon 74ca9b1d5f Bug 1510695 - Fix URL comparisons when loading reftests r=jgraham
Depends on D13281

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:11:34 +00:00
Geoffrey Sneddon 9b800090dd Bug 1510693 - Tests for marionette's reftest runner r=jgraham,ato
Differential Revision: https://phabricator.services.mozilla.com/D13281

--HG--
extra : moz-landing-system : lando
2019-01-11 18:11:44 +00:00
Henrik Skupin 43ec1824b4 Bug 1512336 - [marionette] Fix hang in TestNavigate.test_set_location_through_execute_script. r=ato
An unexpected remoteness change can cause the
"WebDriver:FindElement" command to hang forever.
To avoid that already pre-load a web page which
enables the remoteness flag.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 13:20:29 +00:00
Henrik Skupin 0965487e73 Bug 1334095 - [marionette] Re-enable TestNavigate.test_about_blank_for_new_docshell on Android. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16287

--HG--
extra : moz-landing-system : lando
2019-01-11 12:22:52 +00:00
Cosmin Sabou d67c07e5d3 Backed out 3 changesets (bug 1510695, bug 1510696, bug 1510693) for causing marionette reftest failures.
Backed out changeset daf05866f9dd (bug 1510696)
Backed out changeset aa26fbe413c4 (bug 1510695)
Backed out changeset bd2cb6b0a391 (bug 1510693)
2019-01-10 22:04:11 +02:00
Geoffrey Sneddon d24f6c35c3 Bug 1510696 - Make width/height of reftests configurable over Marionette r=jgraham,ato
Depends on D13282

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

--HG--
extra : moz-landing-system : lando
2019-01-10 17:22:54 +00:00
Geoffrey Sneddon d58a6fd9ba Bug 1510695 - Fix URL comparisons in reftestWait r=jgraham
Depends on D13281

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

--HG--
extra : moz-landing-system : lando
2019-01-10 17:22:52 +00:00
Geoffrey Sneddon dd75d2c4bd Bug 1510693 - Tests for marionette's reftest runner r=jgraham,ato
Differential Revision: https://phabricator.services.mozilla.com/D13281

--HG--
extra : moz-landing-system : lando
2019-01-10 17:22:49 +00:00
Henrik Skupin 941be3d64d Bug 1441437 - [marionette] Remove dependency to cssTransform.html and cssTransform2.html in test_visibility.py. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16182

--HG--
extra : moz-landing-system : lando
2019-01-10 14:27:20 +00:00
Henrik Skupin ccadd49d38 Bug 1507067 - [marionette] Listen for "visibilitychange" event in content process. r=ato
To detect when the window got minimized usally "visibilitychange" events
are fired to the content window. The "WebDriver:MinimizeWindow" command
has to wait for those.

Depends on D16096

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

--HG--
extra : moz-landing-system : lando
2019-01-10 14:26:52 +00:00
Henrik Skupin 96e367f76b Bug 1507067 - [marionette] Add support for EventListener callback to WebElementEventTarget. r=ato
Depends on D16095

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

--HG--
extra : moz-landing-system : lando
2019-01-10 14:26:26 +00:00
Henrik Skupin 5638bd8735 Bug 1507067 - [marionette] Add logging of received DOM events to ContentEventObserverService. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16095

--HG--
extra : moz-landing-system : lando
2019-01-10 14:26:02 +00:00
Henrik Skupin c820e2d61d Bug 1504756 - [marionette] Added opening a new browsing context to Marionette client. r=ato
The patch updates the Marionette client and all Marionette unit
tests to make use of the new `Create Window` command as much as
possible.

Depends on D13663

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:13:17 +00:00
Henrik Skupin c631c98202 Bug 1504756 - [marionette] Added "WebDriver:NewWindow" command to open a new top-level browsing context. r=ato
The patch adds the end-point for the recently defined `New Window`
command (https://github.com/w3c/webdriver/issues/1138). It allows
to open a new top-level browsing context as tab or as window.

Depends on D13662

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:14:24 +00: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
shindli e196689816 Merge inbound to mozilla-central. a=merge 2019-01-09 23:42:10 +02:00
Henrik Skupin 6740c4d043 Bug 1517196 - [marionette] Raise "no such element" error in "Switch To Frame" for unknown elements. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16049

--HG--
extra : moz-landing-system : lando
2019-01-09 16:21:58 +00:00
Henrik Skupin 254cb0fb45 Bug 1422741 - [marionette] Re-enable test TestPageLoadStrategy.test_strategy_after_remoteness_change. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16014

--HG--
extra : moz-landing-system : lando
2019-01-09 11:11:01 +00:00
Cosmin Sabou 1e50aa1d21 Merge mozilla-central to mozilla-inbound.
--HG--
rename : devtools/client/shared/multi-e10s-helper.js => devtools/shared/multi-e10s-helper.js
rename : toolkit/themes/shared/numberbox.css => toolkit/themes/shared/numberinput.css
extra : rebase_source : 3aa7c3b9f560aaa47259594ce1e52f1bfbbad169
2019-01-09 18:16:13 +02:00