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

3825 Коммитов

Автор SHA1 Сообщение Дата
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
Ehsan Akhgari b3c4267b3c Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34460

--HG--
extra : moz-landing-system : lando
2019-06-12 09:07:33 +00:00
Ehsan Akhgari fc40494b9c Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459

--HG--
extra : moz-landing-system : lando
2019-06-12 23:05:36 +00:00
Gijs Kruitbosch 65eeddec9b Bug 1548515 - Make quitter wait until we've run idle tasks, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D32470

--HG--
extra : rebase_source : b101c99e7ba2bc9a169a7313eed3ed501f74fd6e
extra : amend_source : fda5ee8c008540b205bab43b498a2e685c610b58
2019-05-24 12:58:43 +01:00
Christoph Kerschbaumer ebb265feb8 Bug 1496010: Apply Meta CSP to System Privileged about:about.
Differential Revision: https://phabricator.services.mozilla.com/D33443

--HG--
extra : moz-landing-system : lando
2019-06-03 06:04:25 +00:00
Andrew Halberstadt fe77911a5f Bug 1553527 - [testing] Add 'fission' to test manifest context r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32210

--HG--
extra : moz-landing-system : lando
2019-05-24 18:41:14 +00:00
Brian Grinstead 7ba536e61d Bug 1551334 - Migrate OSX hidden window from XUL to XHTML r=Gijs
Also take the oppurtunity to include "mac" in the filename to clarify
where it's used.

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

--HG--
rename : browser/base/content/hiddenWindow.xul => browser/base/content/hiddenWindowMac.xhtml
extra : moz-landing-system : lando
2019-05-22 18:00:13 +00:00
Ting-Yu Lin f93ea0beb4 Bug 1552964 - Remove the third argument passed to run_robocop_test(). r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D31873

--HG--
extra : moz-landing-system : lando
2019-05-21 13:09:21 +00:00
Kevin Jacobs b93f23a66b Bug 1535210 - Set SSL STATE_IS_BROKEN flag for TLS1.0 and TLS 1.1 connections. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D29576

--HG--
extra : moz-landing-system : lando
2019-05-15 23:34:52 +00:00
Geoff Brown 0ede01a59a Bug 1552052 - Do not dump mochitest/reftest logcat for successful runs; r=bc
Logcat is available as a separate artifact anyway. This makes the test log
for successful runs much smaller: easier to read, cheaper to store.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 22:48:26 +00:00
Boris Zbarsky 928476d24c Bug 1550092 part 1. Stop using [array] in sendTouchEvent/sendTouchEventToWindow. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D30441

--HG--
extra : moz-landing-system : lando
2019-05-10 09:03:39 +00:00
Andrew Halberstadt 4b124524c7 Bug 1550515 - [mochitest] Don't 'keep_open' a single mochitest when using --headless, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D30536

--HG--
extra : moz-landing-system : lando
2019-05-09 19:07:57 +00:00
Nika Layzell 6eb2084136 Bug 1544811 - Use web processes on a per-site basis for fission-enabled windows, r=mconley
This patch introduces a new type of content process, which has a dynamic name.
This type of content process is labeled as `webIsolated=${SITE_ORIGIN}` and is
used within fission-enabled windows.

To enable this, additional information about the fission status of the target
window must be passed into E10SUtils. This was done by updating every call site
manually to pass an extra boolean. A better solution perhaps should be used in
the future.

With this patch enabled, we now perform process switches, but only when
navigating to HTTP URIs. If we navigate to a non-HTTP URI in an iframe with
fission enabled, it will not behave correctly. This must be done in a
follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 21:31:57 +00:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Andrew Halberstadt e108b019b8 Bug 1547983 - [mochitest] Fix running a single mochitest-plain-clipboard/gpu test locally, r=jmaher
This was a regression from bug 1546100.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 21:09:16 +00:00
Gijs Kruitbosch 811c33eeca Bug 1515204 - add mouseup after drop in EventUtils, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D28749

--HG--
extra : moz-landing-system : lando
2019-04-30 12:55:23 +00:00
Jonas Allmann a409257d6d Bug 1546990 - Remove several files from eval()-assertion whitelist, r=ckerschb
Refactor several occurences of `setTimeout()` to avoid triggering the `eval()` assertion.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 11:20:37 +00:00
Andrew Halberstadt 060e1d37f0 Bug 1546100 - [mochitest] Error out when running 'a11y' or 'chrome' with e10s, r=jmaher
Previously we would silently change the value of "e10s" from False to True.
This can cause confusion and lead people to falsely think mochitest-chrome/a11y
work with e10s (they do not).

Now we explicitly error out in this case. This might be slightly less
convenient for the developer (e.g they might need to re-run the command), but
the downside of needing to rerun a test command is less than the risk of
misunderstanding what is being tested.

Note: when running |mach test| or |mach mochitest| on a directory that contains
both chrome/a11y and another suite, we'll still do the right thing and
implicitly set "e10s=False".

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

--HG--
extra : moz-landing-system : lando
2019-04-26 18:25:21 +00:00
Andrew Halberstadt b3e208c4af Bug 1546100 - [mochitest] Use kwargs from moztest.resolve in mach mochitest, r=jmaher
These days 'moztest.resolve' is becoming the defacto place to define test harness
related metadata. Currently |mach test| uses it to find kwargs that need to get
set for mochitest commands, but |mach mochitest| does not. Instead, it grabs this
metadata from 'mochitest_options.py'.

This patch makes the kwargs used consistent between both |mach test| and |mach
mochitest|.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 12:45:38 +00:00
Dorel Luca 043307cbad Backed out changeset 72ae3513844c (bug 1515204) for Mochitest failures in layout/base/tests/test_reftests_with_caret.html. CLOSED TREE 2019-04-25 21:01:40 +03:00
Gijs Kruitbosch dc4531ece2 Bug 1515204 - add mouseup after drop in EventUtils, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D28749

--HG--
extra : moz-landing-system : lando
2019-04-25 15:45:23 +00:00
Bob Clary 0bffbb3592 Bug 1544089 - [mochitest] - Configure ssltunnel to listen on loopback address for Desktop and any public address for Remote tests, r=gbrown.
Depends on D27722

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

--HG--
extra : moz-landing-system : lando
2019-04-23 00:36:52 +00:00
Sylvestre Ledru a1dce6440a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-22 16:35:03 +00:00
Ian Moody 973a680c6b Bug 1379466 - Add auxclick to mouse synthesis test code. r=smaug
Check that non-synthesised auxclicks get isHandlingUserInput == true.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 12:57:35 +00:00
Johann Hofmann 786db8c42d Bug 1536454 - Part 5 - Add tests for permission prompt event telemetry. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D27907

--HG--
extra : moz-landing-system : lando
2019-04-18 13:43:38 +00:00
Brian Grinstead 36bfb3ba81 Bug 1544051 - Part 4 - Remove AddTask.js r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D27762

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:42 +00:00
Brian Grinstead 381332c51e Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672

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

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:01 +00:00
Brian Grinstead 7ab932d712 Bug 1544051 - Part 2 - Remove some references to AddTask.js that aren't caught by the script in part 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D27760

--HG--
extra : moz-landing-system : lando
2019-04-18 16:50:39 +00:00
Brian Grinstead 87bc6e7b7a Bug 1544051 - Part 1 - Move add_task into SimpleTest.js r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D27759

--HG--
extra : moz-landing-system : lando
2019-04-18 17:01:02 +00:00
Bob Clary e263e174bf Bug 1544089 - Allow the configuration of the ssltunnel listening address, r=mayhemer.
Differential Revision: https://phabricator.services.mozilla.com/D27722

--HG--
extra : moz-landing-system : lando
2019-04-17 14:37:28 +00:00
Brian Grinstead 911776d674 Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 3` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:59:25 +00:00
Brian Grinstead ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Brian Grinstead 6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Brian Grinstead 662c3bf371 Bug 1543841 - Remove newlines for the #content and #test nodes in `./mach addtest` templates r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D27188

--HG--
extra : moz-landing-system : lando
2019-04-12 05:04:50 +00:00
Brian Grinstead 8e0afeaab1 Bug 1543841 - Update `./mach addtest` templates to stop using [type] attribute on stylesheets r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D27181

--HG--
extra : moz-landing-system : lando
2019-04-12 05:04:14 +00:00
Brian Grinstead 74a00a54ae Bug 1543300 - Update `./mach addtest` templates to stop using [type] attribute on script tags r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D26811

--HG--
extra : moz-landing-system : lando
2019-04-10 05:03:53 +00:00
Brian Grinstead 05f5ec26a4 Bug 1540285 - Add a test generator script into `./mach addtest` r=ahal
Instead of:
perl gen_template.pl -b=123456 --type=plain > path/to/test_bug123456.html

You can do:
./mach addtest --suite="mochitest-plain" > path/to/test_bug123456.html

But you can also pass in a new file path and let it guess the suite/doc:

```
# mochitest-chrome tests
./mach addtest js/xpconnect/tests/chrome/test_chrome.html
./mach addtest js/xpconnect/tests/chrome/test_chrome.xhtml
./mach addtest js/xpconnect/tests/chrome/test_chrome.xul

# mochitest-plain tests
./mach addtest js/xpconnect/tests/mochitest/test_plain.html
./mach addtest js/xpconnect/tests/mochitest/test_plain.xhtml
./mach addtest js/xpconnect/tests/mochitest/test_plain.xul

# mochitest-browser tests
./mach addtest browser/base/content/test/alerts/browser_foo.js

# xpcshell tests
./mach addtest browser/components/extensions/test/xpcshell/test_xpcshell.js
```

This also changes the mochitest template files in the following ways:
- removes the bug # boilerplate
- remove some unnecessary attributes in the template
- removes the th.template
- adds the browser.template for browser-chrome tests

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

--HG--
rename : testing/mochitest/static/chrome.template.txt => testing/mochitest/static/chromehtml.template.txt
rename : testing/mochitest/static/test.template.txt => testing/mochitest/static/plainhtml.template.txt
rename : testing/mochitest/static/xhtml.template.txt => testing/mochitest/static/plainxhtml.template.txt
rename : testing/mochitest/static/xul.template.txt => testing/mochitest/static/plainxul.template.txt
extra : moz-landing-system : lando
2019-04-08 19:09:42 +00:00
Gijs Kruitbosch d395728ea0 Bug 1537622 - fix various minor eslint issues in XUL files, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24297

--HG--
extra : moz-landing-system : lando
2019-04-05 12:18:24 +00:00
Ian Moody 24160ab0c5 Bug 1541025 - testing/ manual ESLint no-throw-literal fixes. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D25759

--HG--
extra : moz-landing-system : lando
2019-04-02 13:42:22 +00:00
Ian Moody e179244140 Bug 1541025 - testing/ automated ESLint no-throw-literal fixes. r=jmaher
Result of running:
$ mach eslint -funix testing/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-04-02 13:44:16 +00:00
Kris Maglione 2751f398be Bug 1540856: Part 3 - Ensure the default theme is enabled for browser mochitests. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25679

--HG--
extra : rebase_source : f8abe07c8d7457bf171f313eb2946d75da90269d
extra : histedit_source : 9c03cf7d02cbd1d19550770601dcd2a8b793418f
2019-04-01 15:37:12 -07:00
Edwin Gao e7c6257344 Bug 1536221 - toggle crashreporter value in mozinfo.json to False for windows10-aarch64 r=jmaher
Set the `crashreporter` value in mozinfo to `False`.

This requires the setting of a new `options.crashreporter` value from `mochitest_options.py`, when it detects windows10-aarch64 configuration.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 16:37:51 +00:00
Kris Maglione 65d8090965 Bug 1539925: Part 4 - Remove stray mochitest install.rdf file. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D25292

--HG--
extra : rebase_source : eab412777802efd9645bf4debff7a83900b97394
extra : histedit_source : e94be367d2c0f8cdf98c5ddf71e21913cc41932b
2019-03-28 12:56:17 -07:00
Rob Wu 420fe7e403 Bug 1540078 - Let pywebsocket listen at localhost in mochitests r=ahal
Not specifying an explicit host causes pywebsocket to listen on the
default address, which may be 0.0.0.0. This triggers the firewall
on macOS, and causes the following prompt to be shown when mochitests
are run:

> Do you want the application "Python.app"
> to accept incoming network connections?

The dialog is a nuisance because it is always on top. Since denying
the access does not change the outcome of tests, it should be safe
to only listen on localhost.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:11:13 +00:00
Mark Banner dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Masayuki Nakano e35cfd926c Bug 1536353 - part 3: Make nsIDOMWindowUtils.dispatchDOMEventViaPresShell() dispatch only trusted event r=smaug
In normal cases, `PresShell::EventHandler` won't receive untrusted event.
However, only `nsIDOMWindowUtils.dispatchDOMEventViaPresShell()` may send
untrusted event if its `aTrusted` is false.  Currently, this is not used by
chrome so that we don't need to keep supporting it for dispatching untrusted
events.

This patch removes `aTrusted` argument from it.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 10:10:22 +00:00
Geoff Brown e8ee36fad6 Bug 1536640 - Improve MOZ_LOG support in Android mochitest harness; r=bc
Unifies the mochitest MOZ_LOG file naming and archiving across desktop/android.
Notably the inclusion of pid and uuid for android log files helps generate
appropriate files for e10s on geckoview.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 14:55:20 +00:00
Gijs Kruitbosch 5e05f6c9c9 Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:14 +00:00
shindli a7af1edc71 Backed out 3 changesets (bug 1353013) for a11y failures in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset af8bce2330e9 (bug 1353013)
Backed out changeset a3d1302b06c0 (bug 1353013)
Backed out changeset 976afd1adf84 (bug 1353013)
2019-03-18 18:21:16 +02:00
Gijs Kruitbosch b7a741e6cb Bug 1353013 - move new tab preload browser tracking into a separate module, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D21126

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:04 +00:00
Thomas Nguyen 26bd1e060c Bug 1528695 - Part 2 : Use referrerInfo in openWindow, contextmenu and openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21911

--HG--
extra : moz-landing-system : lando
2019-03-15 05:10:17 +00:00
Geoff Brown eea10fc31e Bug 1533445 - Make android tests shutdown faster when device unresponsive; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D22610

--HG--
extra : moz-landing-system : lando
2019-03-07 22:45:13 +00:00
Florian Quèze a65779bd47 Bug 1529000 - add a way to provide environment variables to use at startup in mochitest manifests, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D21726

--HG--
extra : moz-landing-system : lando
2019-03-06 19:03:51 +00:00
Jan Henning 50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Felipe Gomes 96dfb4e813 Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21089

--HG--
extra : moz-landing-system : lando
2019-03-04 20:21:31 +00:00
Geoff Brown a908bb5504 Bug 1531611 - Check for ANR and tombstone files in all android tests; r=bc
The existing ANR and tombstone checks in remoteautomation are used
by mochitests and reftests but are awkward for other harnesses like cppunit
that do not use remoteautomation...and easily missed. This patch moves that
code to the mozharness AndroidMixin, treating ANRs and tombstones like the
logcat: Make sure any old logs are deleted when the mozharness script starts,
then move any logs found at the end of the run to the upload directory.
https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=f3de1e9836da2b0c9232f5d92c751b979459e19b
demonstrates tombstone artifacts for the Android 7.0 cppunit tests.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 14:22:45 +00:00
Cosmin Sabou a706bb3916 Backed out 16 changesets (bug 827976) for causing bug 1532054. a=backout
Backed out changeset 54c0b12443ed (bug 827976)
Backed out changeset 92b45080d080 (bug 827976)
Backed out changeset 443087a359f9 (bug 827976)
Backed out changeset f976c2d4cebb (bug 827976)
Backed out changeset 66cffb171024 (bug 827976)
Backed out changeset 845e1d0b2402 (bug 827976)
Backed out changeset fd94066a1d76 (bug 827976)
Backed out changeset e253b264e7bd (bug 827976)
Backed out changeset 07ef335770a8 (bug 827976)
Backed out changeset 9d3805d77b99 (bug 827976)
Backed out changeset eed600ceb606 (bug 827976)
Backed out changeset 3b64368cff52 (bug 827976)
Backed out changeset 69d0378e0c09 (bug 827976)
Backed out changeset 9203871a5c6f (bug 827976)
Backed out changeset 96a507c818e2 (bug 827976)
Backed out changeset e254496ff95b (bug 827976)
2019-03-02 20:40:01 +02:00
Felipe Gomes 85cb541ba6 Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21089

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:41 +00:00
James Willcox 61ca9441b1 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

This also replaces 'isFennec' with the more correct 'is_fennec'.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 15:01:43 +00:00
Byron Campen [:bwc] e1a33816af Bug 1521879 - Part 7: Create new CI jobs for media mochitests with socket process enabled. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17942

--HG--
extra : moz-landing-system : lando
2019-02-25 21:52:13 +00:00
Gurzau Raul e6740c75fc Backed out 10 changesets (bug 1521879) for causing bug 1530107. a=backout
Backed out changeset f597a73a6eac (bug 1521879)
Backed out changeset 0bb76534f207 (bug 1521879)
Backed out changeset abcb8be12adf (bug 1521879)
Backed out changeset ed6c8d3bbfde (bug 1521879)
Backed out changeset 1addf1e15b55 (bug 1521879)
Backed out changeset 6b709cd9a479 (bug 1521879)
Backed out changeset 07747027c59c (bug 1521879)
Backed out changeset a6105ccc188c (bug 1521879)
Backed out changeset 48c9c643e7bb (bug 1521879)
Backed out changeset d4004105a04a (bug 1521879)
2019-02-25 12:12:15 +02:00