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

3724 Коммитов

Автор SHA1 Сообщение Дата
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
Byron Campen [:bwc] ee86d56d40 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-21 20:26:33 +00:00