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

3432 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown 14920af2df Bug 1456520 - Make test_capabilities.py more resilient to mozdevice changes; r=bc,whimboo 2018-04-26 10:43:08 -06:00
Geoff Brown 4f07c8ba29 Bug 1440714 - Convert Android marionette tests to use adb.py; r=bc 2018-04-26 10:43:08 -06:00
Kris Maglione a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Maja Frydrychowicz eec8552cbf NO BUG - Update Marionette New Contributors guide and links; r=me
--HG--
extra : rebase_source : b4da2a45415e19634dd025e76d678283d8b28d7a
2018-04-24 15:55:00 -04:00
Brindusan Cristian 9265429dcd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-25 00:57:49 +03:00
Brindusan Cristian 59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Andreas Tolfsen c14aed4d78 Bug 1456450 - Sort marionette.jar manifest lexicographically. r=maja_zf,whimboo
Normally this sort of change could be filed under "needless churn",
but by appending new files to this list we end up with constant
merge conflicts.

MozReview-Commit-ID: HnaIN2d5fOa

--HG--
extra : rebase_source : b6661417d4e7afeb8e73abe5c2ea15714b4f7dbd
2018-04-24 13:35:24 +01:00
Andrew Swan 7b20ac46dc Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 6c70243496248b617d3bf5d7244388d0c30004f8
2018-04-23 14:59:11 -07:00
Andreas Tolfsen 68de720a58 NO BUG - Improve navigation of Marionette docs. r=me
MozReview-Commit-ID: 7sW0qDYWjGB
2018-04-24 08:27:33 +01:00
Andreas Tolfsen 9c4c163cff NO BUG - Marionette docs are generated with Sphinx. r=me
MozReview-Commit-ID: 7PnX4xqROm2
2018-04-24 08:27:31 +01:00
Andreas Tolfsen 39c859e008 NO BUG - Eliminate one header level in Taskcluster docs. r=me
MozReview-Commit-ID: GLZowUaSJ3i
2018-04-24 08:16:24 +01:00
Andreas Tolfsen 5490987119 NO BUG - Reorganise and improve Marionette testing docs. r=me
MozReview-Commit-ID: IOzMkxco0Fp
2018-04-24 08:13:37 +01:00
Ciure Andrei 33e644e1da Merge inbound to mozilla-central. a=merge 2018-04-24 04:14:21 +03:00
Andreas Tolfsen 6a67ccf821 NO BUG - Migrate docs on how to run Mn on Fennec. r=me
MozReview-Commit-ID: GQaEHUBfgAj
2018-04-23 17:53:22 +01:00
Andreas Tolfsen f8effc614b Bug 1456051 - Make server an ES module. r=maja_zf
MozReview-Commit-ID: Cc8LEdVtmVg

--HG--
extra : rebase_source : 41898d5f0ea2745be08eb910d71f3b1abcec17db
2018-04-23 10:19:52 +01:00
Andreas Tolfsen d458b76e52 Bug 1456051 - Make cert an ES module. r=maja_zf
In addition to the way symbols are exposed, this patch makes a few
changes to what is exposed.  Unexposing currentOverride and the
error override bitmasks should not cause any problems.

MozReview-Commit-ID: 9CWZHVyAKbg

--HG--
extra : rebase_source : 6411f842c1eec26661cbe6f4d9e821904ffc4811
2018-04-23 10:01:40 +01:00
Andreas Tolfsen 916ef8de56 Bug 1456051 - Make addon an ES module. r=maja_zf
This does not really functionally change anything, but it prevents
us from polluting the global space in testing/marionette/driver.js.

MozReview-Commit-ID: Guwt3g0lS8q

--HG--
extra : rebase_source : ad2c38e51d54b7c4ead6b8d6a49d05a0dfef7c6c
2018-04-23 08:12:30 +01:00
Andreas Tolfsen 921d8f6a6e Bug 1456051 - Make addon.uninstall race safe. r=maja_zf
addon.uninstall would return immediately, not waiting for the
onUninstalled listener event to fire.  We can eliminate this race
condition by using a promise that resolves when it fires.

MozReview-Commit-ID: E4Mh797X9n8

--HG--
extra : rebase_source : 473e60cc393553302dcf1a2f7a18d2a45091652f
2018-04-23 08:05:35 +01:00
Andreas Tolfsen f3f07d1533 Bug 1456051 - Propagate OS errors on addon installation. r=maja_zf
The error descriptions are rather vague and may obfuscate the
real problem.  This changes the messages to be more in line with
the underlying error, and also ensures the original error is propagated.

MozReview-Commit-ID: EjctkgeUgNH

--HG--
extra : rebase_source : be10efb18f581d4643e5f52a982b888a72ef27be
2018-04-23 07:48:54 +01:00
Andreas Tolfsen 6fcd3c1caa Bug 1456051 - Avoid double-wrapping of UnknownError. r=maja_zf
MozReview-Commit-ID: LZVxzGhAKoD

--HG--
extra : rebase_source : 863d127ea17a2bd05a0c688525e86229bd61d6e1
2018-04-23 07:45:28 +01:00
Andreas Tolfsen 740636cd1f Bug 1456050 - Use MarionettePrefs.port in TCPListener. r=whimboo
MozReview-Commit-ID: 8Ta5TgUzYBw

--HG--
extra : rebase_source : b789989ea251f0bb5f66e95506caa1d71dae54ca
2018-04-23 07:29:38 +01:00
Andreas Tolfsen 4e7776764d Bug 1456050 - Add marionette.contentListener to MarionettePrefs. r=whimboo
MozReview-Commit-ID: 1SPrw4Vwd3N

--HG--
extra : rebase_source : f2218a9ec0ebc3472a964abcca0bd1aa09ed2eb0
2018-04-23 07:26:09 +01:00
Andreas Tolfsen d964f30a08 Bug 1456050 - Add marionette.debugging.clicktostart to MarionettePrefs. r=whimboo
MozReview-Commit-ID: BAxcJFcv1uD

--HG--
extra : rebase_source : 7982a7e72b0c878621db896613f53599053c56e7
2018-04-23 07:17:44 +01:00
Margareta Eliza Balazs 52c01b70d5 Backed out changeset b3ef06fe604d (bug 1433574) for causing merge conflicts 2018-04-24 14:47:45 +03:00
Andrew Swan 0296ae6c8e Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 90cb17fd8c9f3ec941933156ee069193b989cb07
2018-04-23 14:59:11 -07:00
Andreea Pavel a608b0b7f9 Backed out changeset cf1022433399 (bug 1433574) Linux build bustages on a CLOSED TREE 2018-04-24 04:35:07 +03:00
Ciure Andrei 84bde96dc6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-24 04:26:26 +03:00
Andrew Swan a359959d1e Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : a95e8b61647d7fb91a3d5b455ba55a056fe0c2bc
2018-04-23 14:59:11 -07:00
Andreas Tolfsen f95f4092ed Bug 1432894 - Remove fallback preferences from Marionette. r=whimboo
Marionette has quite a complicated system in
testing/marionette/components/marionette.js for support fallback
preferences for earlier Firefoxen.  Since Firefox 55 shipped
quite some time ago it is time to remove the fallbacks.  This will
significantly simplify the overall complexity of this file.

MozReview-Commit-ID: 5lfstTBVF3N

--HG--
extra : rebase_source : 7e4b68d12c7e7bd33474acb3fcf6f6001fd81341
2018-04-14 17:28:42 +01:00
Andreas Tolfsen eb2244da5a Bug 1432894 - Provide shorthands for Marionette prefs. r=whimboo
This introduces a new testing/marionette/prefs.js module with shorthands
for all of Marionette's preferences.  Getters are provided for all
preferences, but setters are only offered for preference we expect
to mutate at runtime.

The new module additionally provides a preference abstraction on
top of nsIPrefService instead of Preferences.jsm.  We cannot use
Preferences.jsm during startup in Marionette because Marionette
gets loaded unconditionally.

Finally an EnvironmentPrefs class is provided for reading and iterating
over preferences stored in JSON Objects in environment variables.

MozReview-Commit-ID: FbgdBEkf5A

--HG--
extra : rebase_source : 0d5b2f11dc94a74aff3f742ef191b72b159b5ee7
2018-04-14 17:25:26 +01:00
Andreas Tolfsen d511d9ebaf Bug 1432894 - Rely on MarionetteMainProcess#enabled instead of pref. r=whimboo
The MarionetteMainProcess#enabled getter returns the value of the
preference so it is more appropriate to use the correct API than
to fetch the preference directly.

MozReview-Commit-ID: 16rpk7rrves

--HG--
extra : rebase_source : d4a4a817ca20f24a99e86aad9fc3d98f12fc05aa
2018-04-14 16:02:42 +01:00
Andreas Tolfsen 0d24869932 Bug 1432894 - Register marionette.contentListener pref. r=whimboo
marionette.contentListener is being used for silly purposes in
Marionette to tell us when it is "safe" to reuse a content frame.
It will be removed with https://bugzil.la/marionette-window-tracking
but we should nonetheless keep track of which preferences are used.

MozReview-Commit-ID: 5gMCMuYfLBa

--HG--
extra : rebase_source : 884b9e546dd8dd8786fb9b6a984642ff3cb3dcc2
2018-04-16 09:15:48 +01:00
Brindusan Cristian 681c4cb5d6 Backed out 4 changesets (bug 1432894) for linting opt test-doc-generate failures.
Backed out changeset fb56c3c325d3 (bug 1432894)
Backed out changeset 531f8f2af57d (bug 1432894)
Backed out changeset 8e9f1887bc89 (bug 1432894)
Backed out changeset f37ff744e424 (bug 1432894)
2018-04-22 19:24:09 +03:00
Andreas Tolfsen 9845e608a3 Bug 1432894 - Remove fallback preferences from Marionette. r=whimboo
Marionette has quite a complicated system in
testing/marionette/components/marionette.js for support fallback
preferences for earlier Firefoxen.  Since Firefox 55 shipped
quite some time ago it is time to remove the fallbacks.  This will
significantly simplify the overall complexity of this file.

MozReview-Commit-ID: 5lfstTBVF3N

--HG--
extra : rebase_source : aee88f5741f624355c4c32eecc18940571d1b8cc
2018-04-14 17:28:42 +01:00
Andreas Tolfsen 7f913180d9 Bug 1432894 - Provide shorthands for Marionette prefs. r=whimboo
This introduces a new testing/marionette/prefs.js module with shorthands
for all of Marionette's preferences.  Getters are provided for all
preferences, but setters are only offered for preference we expect
to mutate at runtime.

The new module additionally provides a preference abstraction on
top of nsIPrefService instead of Preferences.jsm.  We cannot use
Preferences.jsm during startup in Marionette because Marionette
gets loaded unconditionally.

Finally an EnvironmentPrefs class is provided for reading and iterating
over preferences stored in JSON Objects in environment variables.

MozReview-Commit-ID: FbgdBEkf5A

--HG--
extra : rebase_source : c3666ff19f4bf8092d9976bbf5e98cd45438e586
2018-04-14 17:25:26 +01:00
Andreas Tolfsen 873a4b73cc Bug 1432894 - Rely on MarionetteMainProcess#enabled instead of pref. r=whimboo
The MarionetteMainProcess#enabled getter returns the value of the
preference so it is more appropriate to use the correct API than
to fetch the preference directly.

MozReview-Commit-ID: 16rpk7rrves

--HG--
extra : rebase_source : d4a4a817ca20f24a99e86aad9fc3d98f12fc05aa
2018-04-14 16:02:42 +01:00
Andreas Tolfsen 516454daac Bug 1432894 - Register marionette.contentListener pref. r=whimboo
marionette.contentListener is being used for silly purposes in
Marionette to tell us when it is "safe" to reuse a content frame.
It will be removed with https://bugzil.la/marionette-window-tracking
but we should nonetheless keep track of which preferences are used.

MozReview-Commit-ID: 5gMCMuYfLBa

--HG--
extra : rebase_source : 884b9e546dd8dd8786fb9b6a984642ff3cb3dcc2
2018-04-16 09:15:48 +01:00
Kris Maglione 9e4e8a2190 Bug 1454202: Follow-up: Fix Marionette test bustage. r=bustage,test-only
MozReview-Commit-ID: 5iWc4ta8TOg
2018-04-21 18:32:00 -07:00
Boris Zbarsky 1df89947b2 Bug 1453869 part 10. Stop constructing DOMParser by contract. r=mrbkap
MozReview-Commit-ID: A0bHF5RHhs6
2018-04-20 23:04:45 -04:00
Mike de Boer ecf63670d4 Bug 1034036 - Part 2: Rename and shorten `getMostRecentBrowserWindow` to `getTopWindow` and modernize the style used in BrowserWindowTracker.jsm. r=dao
MozReview-Commit-ID: EvgAhq4uR3a

--HG--
extra : rebase_source : 8fd8040cd1eee94675d4e9ca0c8ccc60db9e1bf7
2018-04-11 12:05:59 +02:00
Mike de Boer d16ee58ded Bug 1034036 - Part 1: Merge RecentWindow.jsm and UpdateTopLevelContentWindowIDHelper.jsm into one module called 'BrowserWindowTracker.jsm'. r=dao
MozReview-Commit-ID: 9qzq1aGvjDu

--HG--
rename : browser/modules/UpdateTopLevelContentWindowIDHelper.jsm => browser/modules/BrowserWindowTracker.jsm
extra : rebase_source : 9c4a728e13fd691d377e7f221c5632646115daca
2018-04-11 12:05:56 +02:00
Andreas Tolfsen cb8c6e7e1d Bug 1454876 - Correct marionette.enabled pref doc. r=maja_zf
The documentation for the marionette.enabled preference is wrong: it
claims that it is used for disabling the Marionette XPCOM component,
but in reality it starts and stops the TCP server.

MozReview-Commit-ID: 8oQz8HjPnii

--HG--
extra : rebase_source : 7771f02e18457bc5e567553ca921995d95c40bdd
2018-04-18 08:05:26 +01:00
James Graham 4daf082666 Bug 1452643 - Update wptserve args in marionette runner, r=me ON A CLOSED TREE
MozReview-Commit-ID: DvCYUNlX3VQ
2018-04-15 19:26:00 +01:00
Emilio Cobos Álvarez 9509cd7e32 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Andreas Tolfsen 1df257e9fc Bug 1453381 - Update Marionette test documentation. r=whimboo
MozReview-Commit-ID: 2BBYPcGIgek

--HG--
extra : rebase_source : 337b6204771f271e47c8cad22ad6b027000b9a74
2018-04-11 23:44:44 +01:00
Andreas Tolfsen 1f71437e6b Bug 1453381 - Add docs for running Marionette xpcshell tests. r=whimboo
This duplicates documentation under testing/marionette/doc, but
can be useful when inspecting the directory.

MozReview-Commit-ID: 7vuUze1SFib

--HG--
extra : rebase_source : 94f2f4de916e576deffe1b3a23beff392b7bb594
2018-04-11 20:53:50 +01:00
Andreas Tolfsen d5dfaa44a7 Bug 1453381 - Fix lint violations in Marionette xpcshell tests. r=whimboo
This patch is partly machine generated and partly massaged by hand
to achieve a satisfactory result.

MozReview-Commit-ID: IG46e93KoOb

--HG--
extra : rebase_source : 02f8fa6ec28a737a4151a757f75cf7ae36427e30
2018-04-11 20:26:53 +01:00
Andreas Tolfsen 2f6356ce4f Bug 1453381 - Enable eslint for Marionette xpcshell tests. r=whimboo
There are currently two exceptions from the normal linting rules
that applies to Marionette xpcshell unit tests:

  - We use camel-casing for our test names.

  - We have many lines longer than 78 characters.

MozReview-Commit-ID: 4MykQujk9lR

--HG--
extra : rebase_source : f73e1a8d205eb34d1463f4805ba0fa806f150081
2018-04-11 20:27:49 +01:00
Andreas Tolfsen 67fe97531f Bug 1453381 - Move Marionette xpcshell tests to subdirectory. r=whimboo
In order to more easily facilitate linting of xpcshell unit tests,
this patch moves the tests to the test/unit subdirectory.

MozReview-Commit-ID: K1rtmreFWRL

--HG--
rename : testing/marionette/test_action.js => testing/marionette/test/unit/test_action.js
rename : testing/marionette/test_assert.js => testing/marionette/test/unit/test_assert.js
rename : testing/marionette/test_browser.js => testing/marionette/test/unit/test_browser.js
rename : testing/marionette/test_cookie.js => testing/marionette/test/unit/test_cookie.js
rename : testing/marionette/test_dom.js => testing/marionette/test/unit/test_dom.js
rename : testing/marionette/test_element.js => testing/marionette/test/unit/test_element.js
rename : testing/marionette/test_error.js => testing/marionette/test/unit/test_error.js
rename : testing/marionette/test_evaluate.js => testing/marionette/test/unit/test_evaluate.js
rename : testing/marionette/test_format.js => testing/marionette/test/unit/test_format.js
rename : testing/marionette/test_message.js => testing/marionette/test/unit/test_message.js
rename : testing/marionette/test_navigate.js => testing/marionette/test/unit/test_navigate.js
rename : testing/marionette/test_session.js => testing/marionette/test/unit/test_session.js
rename : testing/marionette/test_sync.js => testing/marionette/test/unit/test_sync.js
rename : testing/marionette/unit.ini => testing/marionette/test/unit/xpcshell.ini
extra : rebase_source : b77cdb754ddc90d1c4ff0e2f6a8dead5168677fe
2018-04-11 19:54:42 +01:00
Andreas Tolfsen 732c8b496c Bug 1453009 - Remove collection tests from Marionette. r=whimboo
Now that we test collections upstream in WPT, the overlapping tests
can be removed from the Mn test suite.

MozReview-Commit-ID: DJZHeKs8FDo

--HG--
extra : rebase_source : 3170081c4054141ab6e39d69865f44a3d55f0385
2018-04-10 19:31:25 +01:00