Rob Wu
3c0c3a2676
Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
...
This patch was generated as follows:
Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.
The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.
1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.
Commands:
```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^ # and verify that the removed lines are ok.
git commit -va # one last review to verify correctness of whole patch.
git rebase -i HEAD~3 # drop the WIP + reverted commit, pick only the last.
```
`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.
Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Mark Banner
130a655906
Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
...
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
8219a5c503
Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
...
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Karandeep
3efcb85a15
Bug 1824609 convert consumers of toolkit/components/thumbnails/ to import ES modules directly. r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D177197
2023-05-10 20:00:58 +00:00
Julian Descottes
52784f4bf8
Bug 1826954 - Allow repeated nsHttpConnectionMgr timers in browser mochitests r=Gijs
...
Depends on D176118
Differential Revision: https://phabricator.services.mozilla.com/D176401
2023-04-26 22:43:59 +00:00
Natalia Csoregi
e6f4a0e8fa
Backed out 3 changesets (bug 1826954) for causing http3 failures e.g. browser_net_http3_request_details.js. CLOSED TREE
...
Backed out changeset fc397a601a63 (bug 1826954)
Backed out changeset 85ad3cfdbe1c (bug 1826954)
Backed out changeset 62802fc23ffe (bug 1826954)
2023-04-26 12:21:10 +03:00
Julian Descottes
2f63a4096f
Bug 1826954 - Allow repeated nsHttpConnectionMgr timers in browser mochitests r=Gijs
...
Depends on D176118
Differential Revision: https://phabricator.services.mozilla.com/D176401
2023-04-26 07:00:50 +00:00
Florian Quèze
9c8ae7b1d4
Bug 1828013 - Fail browser tests that leave repeating timers behind, r=Gijs.
...
Differential Revision: https://phabricator.services.mozilla.com/D175431
2023-04-20 09:43:41 +00:00
Mark Striemer
7b5861ceeb
Bug 1819372 - Part 1: Reorder light DOM in moz-button-group r=hjones
...
Differential Revision: https://phabricator.services.mozilla.com/D173891
2023-04-13 16:20:50 +00:00
Emilio Cobos Álvarez
857a8c1bde
Bug 1821985 - Deal with nsIException in the test harness. r=Gijs
...
While trying to write a test for this a very suspicious error message:
FAIL Uncaught exception in test bound testOptionsFullZoom - {}
After this change the error is much more helpful:
FAIL Uncaught exception in test bound testOptionsFullZoom - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendMouseEvent]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://mochikit/content/tests/SimpleTest/EventUtils.js :: synthesizeMouseAtPoint :: line 627" data: no]
Differential Revision: https://phabricator.services.mozilla.com/D175237
2023-04-12 12:40:07 +00:00
Nazım Can Altınova
5d4ab6bd13
Bug 1776694 - Return profile with additional info from GetProfileDataAsGzippedArrayBuffer r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D172555
2023-03-15 18:19:31 +00:00
Mark Banner
80cc721b82
Bug 1820498 - Convert PerTestCoverageUtils to an ES module. r=marco,webdriver-reviewers,perftest-reviewers,sparky,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D171689
2023-03-06 19:13:58 +00:00
Gijs Kruitbosch
a2ca4e4b33
Bug 1819445 - fix logging for string exceptions, r=willdurand
...
Differential Revision: https://phabricator.services.mozilla.com/D171458
2023-03-03 14:53:55 +00:00
Marian-Vasile Laza
507c6dcea8
Backed out changeset 60ea4459193f (bug 1819445) for devtools failures on browser_resources_network_events.js. CLOSED TREE
2023-03-03 15:40:44 +02:00
Gijs Kruitbosch
0a40e81956
Bug 1819445 - fix logging for string exceptions, r=willdurand
...
Differential Revision: https://phabricator.services.mozilla.com/D171458
2023-03-03 11:58:30 +00:00
Gijs Kruitbosch
35c2e74490
Bug 1819134 - fix 'Error' object dection in x-window errors in mochitests and associated logging, r=willdurand
...
Differential Revision: https://phabricator.services.mozilla.com/D171118
2023-02-28 17:04:58 +00:00
Gijs Kruitbosch
387cf24ca0
Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
...
Depends on D168396
Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 23:50:41 +00:00
Cristina Horotan
5f4356e527
Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
...
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch
ff1cc20bd7
Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
...
Depends on D168396
Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 12:55:26 +00:00
William Durand
20bcf70aac
Bug 1815853 - Make sure `JSON.stringify()` won't break in `testResult()`. r=gbrown
...
Differential Revision: https://phabricator.services.mozilla.com/D169303
2023-02-09 20:12:43 +00:00
William Durand
2c79a419fe
Bug 1815682 - Improve the output of uncaught exceptions. r=gbrown
...
Differential Revision: https://phabricator.services.mozilla.com/D169196
2023-02-08 14:44:37 +00:00
Mark Banner
47d3353423
Bug 1813308 - Remove unused browser-test.js definition of copyToProfile in browser mochitest scope. r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D168219
2023-01-30 16:50:09 +00:00
Florian Quèze
f40dd158de
Bug 1808729 - reset the user idle service before each browser-chrome mochitest, r=jmaher.
...
Depends on D166099
Differential Revision: https://phabricator.services.mozilla.com/D166704
2023-01-16 14:55:22 +00:00
Mark Banner
8ff997068a
Bug 1806306 - Convert AsyncShutdown imports to direct ES imports. r=mak,webdriver-reviewers,application-update-reviewers,bytesized
...
Differential Revision: https://phabricator.services.mozilla.com/D164981
2022-12-23 12:37:06 +00:00
Barret Rennie
15bea72588
Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
...
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-25 19:09:10 +00:00
Mark Banner
02375d923e
Bug 1799314 - Convert consumers of testing modules to import ES modules direct (testing/). r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D161908
2022-11-17 12:00:28 +00:00
Cristian Tuns
4d37cf70f1
Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
...
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie
c99b29d427
Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
...
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-02 02:08:58 +00:00
Mark Banner
9189ff3f6f
Bug 1798018 - Convert consumers of toolkit/modules/tests to import ES modules direct. r=Gijs,webdriver-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D160664
2022-11-01 13:26:38 +00:00
Mark Banner
2ffde1e92f
Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
...
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.
Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Joel Maher
fd5c1c888d
Bug 1782700 - terminate browser-chrome session if unable to close tab. r=gbrown
...
Differential Revision: https://phabricator.services.mozilla.com/D157274
2022-09-14 15:47:15 +00:00
Mark Banner
365f6e8e10
Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for testing. r=jmaher,perftest-reviewers,AlexandruIonescu
...
Differential Revision: https://phabricator.services.mozilla.com/D155175
2022-08-26 13:39:38 +00:00
Florian Quèze
6d15c3f4b2
Bug 1742842 - Workaround known issues in tests that currently keep vsync enabled forever, r=mconley,webdriver-reviewers,jdescottes.
...
Differential Revision: https://phabricator.services.mozilla.com/D153204
2022-08-01 16:04:15 +00:00
Florian Quèze
edc1623053
Bug 1742842 - Ensure that vsync is disabled after each browser-chrome mochitest, r=mconley.
...
Differential Revision: https://phabricator.services.mozilla.com/D132055
2022-08-01 16:04:14 +00:00
Butkovits Atila
09b6bee447
Backed out 2 changesets (bug 1742842) for causing failures complaining about vsync. CLOSED TREE
...
Backed out changeset 82364f4b3520 (bug 1742842)
Backed out changeset b94a13888214 (bug 1742842)
2022-07-29 19:09:13 +03:00
Florian Quèze
69a9721934
Bug 1742842 - Ensure that vsync is disabled after each browser-chrome mochitest, r=mconley.
...
Differential Revision: https://phabricator.services.mozilla.com/D132055
2022-07-29 15:31:19 +00:00
Joel Maher
17107a0b65
Bug 1779985 - adjust mouse position before each mochitest bc manifest. r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D152933
2022-07-27 21:20:20 +00:00
Tooru Fujisawa
54623364da
Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
7738a75fdd
Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
...
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
8cd6ed7409
Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
bf93d07148
Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Joel Maher
490f3d046c
Bug 1773523 - allow_xul_xbl support in manifests. r=mccr8,gbrown
...
Differential Revision: https://phabricator.services.mozilla.com/D148681
2022-06-09 19:01:01 +00:00
Gijs Kruitbosch
bb70c5a894
Bug 1720335 - add add_setup helper that adds setup methods, r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D136808
2022-02-04 16:35:58 +00:00
Florian Quèze
9360033f06
Bug 1729263 - automatically upload profiles of failed browser-chrome tests, r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D124603
2021-12-09 18:42:48 +00:00
Christoph Kerschbaumer
56f30defc0
Bug 1722871: Do not explicitly call popPrefEnv after test finishes when annotated with https_first_disabled r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D121167
2021-08-13 12:05:47 +00:00
Christoph Kerschbaumer
5a0e65f9c3
Bug 1720535: Add https-first-disabled annotation to mochitest harness r=ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D119970
2021-07-26 16:47:45 +00:00
Neil Deakin
931c6d6227
Bug 1717680, remove the now unused document.popupNode and document.tooltipNode properties, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D118524
2021-07-09 11:51:15 +00:00
Mark Banner
6fdf25dc9d
Bug 1717025 - Remove unnecessary inclusions of Promise.jsm in test harnesses and tests. r=florian
...
Differential Revision: https://phabricator.services.mozilla.com/D118180
2021-06-17 14:31:57 +00:00
Mark Banner
39a3db78d4
Bug 1707711 - Stop using ChromeUtils.import(..., null) in testing/. r=kmag
...
Also clean up some unused exclusions in .eslintrc.js.
Differential Revision: https://phabricator.services.mozilla.com/D114623
2021-05-10 08:56:05 +00:00
Sandor Molnar
8d9abf3285
Backed out changeset ed582ad8db97 (bug 1707711) for causing dt failures in browser_webconsole_stubs_page_error. CLOSED TREE
2021-05-09 18:46:56 +03:00