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

3785 Коммитов

Автор SHA1 Сообщение Дата
Edwin Gao 5d0a507d0c Bug 1559975 - convert testing/mochitest to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37096

--HG--
extra : moz-landing-system : lando
2019-08-02 19:44:34 +00:00
Geoff Brown 2c32a72538 Bug 1569688 - Use e10s by default for geckoview mochitest; r=jmaher
The default, options.app == None, implies geckoview, with e10s.

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

--HG--
extra : moz-landing-system : lando
2019-07-29 17:54:25 +00:00
Andrew Halberstadt 429fb9a444 Bug 1567264 - [mochitest] Add a convenience --enable-fission argument r=gbrown
This argument is an alias for '--setpref="fission.autostart=1"'.

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

--HG--
extra : moz-landing-system : lando
2019-07-29 17:49:33 +00:00
Julian Descottes acb7fed127 Bug 1569235 - Ensure subtest name is a string when parsing test lines r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39527

--HG--
extra : moz-landing-system : lando
2019-07-29 11:08:12 +00:00
Bogdan Tara 35bb05e6e9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-27 00:41:55 +03:00
Gurzau Raul 65d132301f Backed out changeset 54629c24e7c3 (bug 1569235) for UnicodeEncodeError on a CLOSED TREE. 2019-07-26 22:35:27 +03:00
Kris Maglione 87884612c0 Bug 1568035: Part 4 - Update test expections for Fission. r=mccr8
Some failures crept in and out after my last sets of annotations landed. This
patch updates most of the annotations to deal with them.

MANUAL PUSH: Lando won't let me land.

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

--HG--
extra : rebase_source : 4cfccf95c5bb2521533a9f5c4c25d67f414fb6f5
extra : histedit_source : c19187a3b3002e0eebdd809738b57641e1e432cd
2019-07-24 13:06:57 -07:00
Julian Descottes b33e28722b Bug 1569235 - Ensure subtest name is a string when parsing test lines r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39527

--HG--
extra : moz-landing-system : lando
2019-07-26 18:27:03 +00:00
Edwin Gao a1cc4534a7 Bug 1519369 - support 'debugger' parser argument for mach test command r=ahal,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39229

--HG--
extra : moz-landing-system : lando
2019-07-26 15:18:18 +00:00
Andreea Pavel fc92f585e2 Backed out 3 changesets (bug 1559244) for causing bug 1370046
Backed out changeset de76712278a6 (bug 1559244)
Backed out changeset 467caef2ef9c (bug 1559244)
Backed out changeset 17ab0c52dca0 (bug 1559244)
2019-07-25 17:42:32 +03:00
Andreea Pavel e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Boris Zbarsky a41e846699 Bug 1568579. Remove test-only uses of QueryInterface on Window objects. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D39219

--HG--
extra : moz-landing-system : lando
2019-07-24 19:46:46 +00:00
Abdoulaye O. Ly 71143356cc Bug 1559244 - Step 2: Add support for crashing sub-frame. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37780

--HG--
extra : moz-landing-system : lando
2019-07-24 18:43:14 +00:00
Abdoulaye O. Ly ae5c8d4df9 Bug 1559244 - Step 1: make BrowserTestUtils@crashBrowser function work with JSWindowActor. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37318

--HG--
extra : moz-landing-system : lando
2019-07-24 18:42:48 +00:00
Boris Zbarsky a818800ec5 Bug 1568278. Remove various unnecessary QIs to nsIDOMWindow. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39065

--HG--
extra : moz-landing-system : lando
2019-07-24 01:26:07 +00:00
Rob Wu 60c5dd7843 Bug 1566984 - Support --no-install for Android mochitests r=gbrown,snorp
Add the `--no-install` option to reduce the time it takes to run
mochitests again on Android when the app does not need to be
re-installed.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 14:00:24 +00:00
Kris Maglione e40b418215 Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8
When a test crashes, the harness skips all of the remaining tests in the
directory. That means that with crashes skipped, we now try to run a whole lot
more tests than we did before, and a lot of them fail under Fission.

This patch adds annotations to the new failures that show up after part 1.

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

--HG--
extra : rebase_source : 292157039c88fc615f5de41679e96e72766ac4db
2019-07-19 12:30:10 -07:00
Gurzau Raul 9866332964 Backed out 3 changesets (bug 1559975) for linting failure at WebIDL.py on a CLOSED TREE.
Backed out changeset a7154744a5d7 (bug 1559975)
Backed out changeset 4005ac274170 (bug 1559975)
Backed out changeset 68ed1ccb5921 (bug 1559975)
2019-07-19 18:25:10 +03:00
Edwin Gao 8cc5b421aa Bug 1559975 - convert testing/mochitest to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37096

--HG--
extra : moz-landing-system : lando
2019-07-19 14:04:54 +00:00
Kris Maglione df821804ae Bug 1563997: Handle webcompat Components stub in MozillaFileLogger.js. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D37938

--HG--
extra : rebase_source : dc1827f5a28dce10881d01461e7ff2a9889d1b65
2019-07-12 14:32:57 -07:00
Agi Sferro 3a4cccbb77 Bug 1565311 - Add --no-install to |mach geckoview-junit|. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D37754

--HG--
extra : moz-landing-system : lando
2019-07-11 20:41:56 +00:00
Kartikaya Gupta 97683b0ae0 Bug 1564209 - Add more paint/flushing logging for APZ mochitests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37420

--HG--
extra : moz-landing-system : lando
2019-07-10 15:46:39 +00:00
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Kris Maglione 3c304b4239 Bug 1561150: Support test assertions in SpecialPowers.spawn sandboxes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35747

--HG--
extra : rebase_source : 62aa469b15c2ebfb0de299c163b26ed68361ee1e
extra : source : 0b3e2164f1283b639782b41b7fd640986d3feca5
2019-06-24 19:25:33 -07:00
Kris Maglione c98e734fe6 Bug 1532795: Part 5 - Support SpecialPowers.spawn on WindowProxy objects. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35378

--HG--
extra : rebase_source : c69b88bd7142f70612c05e56e1a0d690b464ff99
extra : source : d5415970da5fd83eb870b397b8db7fdf6c57ad23
2019-06-19 13:07:14 -07:00
Kris Maglione 7b24e2e254 Bug 1532795: Part 2 - Implement basic SpecialPowers.spawn as a replacement for ContentTask. r=nika
With out-of-process iframes, we'll need similar functionality to the
ContentTask helpers that can be used in any process, with any type of frame.

Using ContentTask directly in unprivileged contexts will, I think, be a bit
too combersome given how often it's needed, so this patch adds an API directly
to SpecialPowers instead.

The environment provided to the task is currently pretty basic, and doesn't
provide the assertion helpers currently available to ContentTask tasks, but it
can grow as we find it necessary.

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

--HG--
extra : rebase_source : baecc56b24c7366d276dad59e7b8f6e087b26ece
extra : source : 8a3d311c7fac75b5902f2fa9dc651137a499fc18
2019-06-18 16:21:49 -07:00
Kris Maglione fd61f8b9d4 Bug 1541557: Part 7 - Convert SpecialPowers to use JSWindowActors rather than framescripts. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35057

--HG--
rename : testing/specialpowers/content/SpecialPowersObserverAPI.jsm => testing/specialpowers/content/SpecialPowersAPIParent.jsm
rename : testing/specialpowers/content/SpecialPowers.jsm => testing/specialpowers/content/SpecialPowersChild.jsm
rename : testing/specialpowers/content/SpecialPowersObserver.jsm => testing/specialpowers/content/SpecialPowersParent.jsm
extra : rebase_source : f3edaf8edc918bb4291b66cb50f4de117f57b2bd
extra : source : 46ff845a7b0cdabf640bb2e3c783735ab68b7cd1
2019-06-12 10:48:29 -07:00
Kris Maglione 3e44c16cf9 Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.

Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.

Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.

However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.

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

--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
Kris Maglione f70e67ad2d Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.

This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.

Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.

There should be follow-ups for test owners to fix the flakiness.

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

--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Kris Maglione fcb799ab11 Bug 1541557: Part 3 - Update callers of sync SpecialPowers functions to await the return value. r=nika
When we migrate SpecialPowers to a JSWindowActor, it will no longer be able to
use synchronous IPC messaging, which means that its current synchronous APIs
will have to become asynchronous.

This patch doesn't change the behavior of those functions, but it does change
their callers to `await` their return values rather than using them directly.
This pattern will work the same whether the functions return a promise or a
plain value, which simplifies the migration.

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

--HG--
extra : rebase_source : baffba2107b175250573baae3f54d48becbd2a16
extra : source : b4ed40bea2698802ef562a0931c0b560737fb89d
2019-06-12 11:41:32 -07:00
Kris Maglione 03f896d165 Bug 1558298: Part 12 - Remove nested OOP support from SpecialPowers and mochitest.
Differential Revision: https://phabricator.services.mozilla.com/D34752

--HG--
extra : rebase_source : be87709c5ed8bc347735ca4b725a7ae849641693
extra : source : d2ee912c518913c33e4c63b5a5eddf6e10b0c9f4
2019-06-12 10:52:47 -07:00
Kris Maglione ef727f0df0 Bug 1558298: Part 11 - Load SpecialPowersObserverAPI as a JSM.
Differential Revision: https://phabricator.services.mozilla.com/D34751

--HG--
rename : testing/specialpowers/content/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersObserverAPI.jsm
extra : rebase_source : 98f7d26b513c4cfcdc5ef835856dec1f99ffed54
extra : source : 7a0aab00327b089c82476bea30ea17373e0a1103
2019-06-12 09:52:12 -07:00
Kris Maglione 96dcf0e503 Bug 1558298: Part 10 - Stop loading MozillaLogger.js from SpecialPowers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34599

--HG--
rename : testing/specialpowers/content/MozillaLogger.js => testing/mochitest/tests/SimpleTest/MozillaLogger.js
extra : rebase_source : faf8bb7eb865cb238ca5c62b2d78dc63e9b36e6f
extra : source : fddf2808fedf7ca16097af3b5c7c46ed44fc2053
2019-06-11 11:37:52 -07:00
Kris Maglione 039c651ec8 Bug 1558298: Part 9 - Make MozillaLogger.js less insane. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34598

--HG--
extra : rebase_source : 5bf7df03478b0f17c5ae92609c1f02aa1eada87b
extra : source : 0f6b382f06261055566d91b84866a51a80e474bd
2019-06-11 11:28:47 -07:00
Kris Maglione 8c450e07f4 Bug 1558298: Part 7 - Convert SpecialPowersAPI and sub-classes to ES6 classes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34596

--HG--
extra : rebase_source : f3e6c2dfad4073f8607e3b93d69fe06db0a1cc0d
extra : source : d27574cfbb0ed580612d7f468f804aa7819fed21
2019-06-10 15:15:37 -07:00
Kris Maglione 0a57492afc Bug 1558298: Part 6 - Remove some arrant nonsense from ChromePowers.js. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34595

--HG--
extra : rebase_source : 7cab8fcef2b49cd7c96900b2f2faa200c0c92593
extra : source : 162bc1fc273035ca47ad28947f6b339d2101c29b
2019-06-10 14:57:58 -07:00
Kris Maglione cc17dab6b6 Bug 1558298: Part 5 - Let ChromePowers.js handle its own SpecialPowers imports. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34594

--HG--
extra : rebase_source : 3e96cb3372833bc84de491ccbea8e26e84fad27c
extra : source : f94500dd11e38ba34310216d958943d6ef07ce96
2019-06-10 14:15:47 -07:00
Kris Maglione 573bb7a368 Bug 1558298: Part 3 - Always load specialpowers.js as a JSM. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34592

--HG--
rename : testing/specialpowers/content/specialpowers.js => testing/specialpowers/content/SpecialPowers.jsm
extra : rebase_source : 4816d20b49de84e082d506818ce222bba64f017d
extra : source : c634099abb9dc0196877e626c0df0c168d78876f
2019-06-10 13:31:19 -07:00
Kris Maglione 78818013b7 Bug 1558298: Part 2 - Always load specialpowersAPI.js as a JSM. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D34591

--HG--
rename : testing/specialpowers/content/specialpowersAPI.js => testing/specialpowers/content/SpecialPowersAPI.jsm
extra : rebase_source : 58842419c5fd5fa0ac79c3f8d175c11982076df5
extra : source : 8d4419c439e1d92209f237e0d9f1e6c19fa71872
2019-06-10 13:12:00 -07:00
Csoregi Natalia 4173161363 Merge mozilla-central to autoland. CLOSED TREE 2019-06-29 13:02:56 +03:00
Kartikaya Gupta 721a5dbcf4 Bug 1558598 - Ensure mozinfo correctly detects WebRender. r=ahal
I don't know if this covers all the things that use mozinfo (probably not)
but it covers all the suites that use mozinfo and have webrender conditions
in the test manifests (i.e. mochitest and wpt variants).

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:51:14 +00:00
Kartikaya Gupta d1d6261d9f Bug 1558598 - Force WebRender on or off in the mochitest harness. r=ahal
This code covers both remote mochtiests and local mochitests.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:48:30 +00:00
Kartikaya Gupta 92b3588b88 Bug 1558598 - Force WebRender on or off in the junit harness. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35850

--HG--
extra : moz-landing-system : lando
2019-06-29 09:48:02 +00:00
Cosmin Sabou 798a05e2dc Merge mozilla-central to mozilla-inbound. 2019-06-28 19:16:36 +03:00
Andrew Swan f1d137eff5 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

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

--HG--
extra : source : f4e21e465f384b90fa1e768141c4db708748bf66
extra : histedit_source : 95d8a4242e8e04df9e29c2b647558d37e910b845
2019-06-11 14:49:46 -07:00
Gabriele Svelto 74276da797 Bug 1536221 - Re-enable mochitests and xpcshell tests that depend on the crash reporter on Windows/AArch64 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D35995

--HG--
extra : moz-landing-system : lando
2019-06-26 13:15:24 +00:00
Geoff Brown 00c7fc4efb Bug 1560073 - Change default android package name for most mach test commands; r=snorp,nalexander,maja_zf
Use the geckoview TestRunnerActivity, org.mozilla.geckoview.test, by default
for all types of mochitests, reftests, and web-platform tests. TRA is already
the default for gtest and geckoview-junit. Fennec, based on ANDROID_PACKAGE_NAME,
remains the default for robocop and marionette-test and I have no plans to
change those. There is a related issue for xpcshell-test -- not the package
name, but the default apk -- but I am reluctant to handle that until bug 1553225
is resolved.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 02:34:49 +00:00
Ciure Andrei c04368fddd Backed out 3 changesets (bug 1555060) for causing test_tabbar.py to perma fail CLOSED TREE
Backed out changeset a5c6deeda8a9 (bug 1555060)
Backed out changeset f4e21e465f38 (bug 1555060)
Backed out changeset c71c45fe3e63 (bug 1555060)

--HG--
rename : browser/base/content/tabbrowser-tabs.js => browser/base/content/tabbrowser.xml
2019-06-28 00:21:50 +03:00
Andrew Swan 6fd54d15e6 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

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

--HG--
extra : rebase_source : affeda0295a5195124709f322de524aea3a28a3f
2019-06-11 14:49:46 -07:00
Marian Raiciof b2b633e095 Bug 1526752 - [mozdevice] Update adb.py and other necessary files to support python3 r=ahal,davehunt
Improve support for Python 3 by running modernize over adb.py and a few other related changes.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 08:44:15 +00:00