dismantle mozmill.jsm and friends
Categories
(Thunderbird :: Testing Infrastructure, task)
Tracking
(thunderbird_esr115 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr115 | --- | wontfix |
People
(Reporter: mkmelin, Assigned: darktrojan)
References
Details
Attachments
(79 files, 1 obsolete file)
|
5.60 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.43 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
4.33 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
10.85 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
3.06 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
5.25 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
3.30 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.80 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
11.41 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
5.71 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
|
17.29 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
|
22.35 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
31.58 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
|
3.81 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
11.44 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
1.33 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
2.89 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
111.39 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
13.99 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.34 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
9.09 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
8.05 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
12.46 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
27.71 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
2.21 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.78 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
4.12 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.28 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
2.06 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
7.29 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
16.96 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Inspired by the recent bustage, I notices mozmill.jsm contains mostly junk nowadays. Most of the stuff isn't used, and it even exports some things that do not exist :/
Time to clean out.
| Reporter | ||
Comment 1•5 years ago
|
||
| Reporter | ||
Comment 2•5 years ago
|
||
| Reporter | ||
Comment 3•5 years ago
|
||
| Reporter | ||
Comment 4•5 years ago
|
||
| Reporter | ||
Comment 5•5 years ago
|
||
| Reporter | ||
Comment 6•5 years ago
|
||
| Reporter | ||
Comment 7•5 years ago
|
||
| Reporter | ||
Comment 8•5 years ago
|
||
| Reporter | ||
Comment 9•5 years ago
|
||
Successful tryrun (have fixed the linting after) - https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=039ed6d33065f320334af488e647d4493bcfc484&selectedJob=290575559
It's almost entirely removing unused things.
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Comment 18•5 years ago
|
||
| Reporter | ||
Comment 19•5 years ago
|
||
Got rid of mozmill.platform calls. Also force_skip and EXCLUDED_PLATFORMS which we don't use in Mochitests.
Just sent to try: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=32f7b87d548d426ff36474f9a642913c2c19bdd9
Comment 20•5 years ago
|
||
Comment 21•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bbcd9eee9226
part1 - remove unsed mozmill exports. r=khushil
https://hg.mozilla.org/comm-central/rev/d0a04e52dbd5
part2 - remove unnecessary getMail3PaneController. r=khushil
https://hg.mozilla.org/comm-central/rev/d5f2f34c0d01
part3 - stop exporting mozmill.controller. r=khushil
https://hg.mozilla.org/comm-central/rev/db70bd44f6e2
part4 - stop exporting mozmill.utils. r=khushil
https://hg.mozilla.org/comm-central/rev/fb950872cc0f
part5 - inline mozmill init.jsm. r=khushil
https://hg.mozilla.org/comm-central/rev/163fe0f39164
part6 - remove unused dom.jsm. r=khushil
https://hg.mozilla.org/comm-central/rev/89e4f92cad8f
part6 - inline strings.jsm usage. r=khushil
https://hg.mozilla.org/comm-central/rev/71e02e54a7f3
part8 - remove unused arrays.jsm. r=khushil
https://hg.mozilla.org/comm-central/rev/9979881cf01c
part9 - remove jum.jsm usage. r=khushil DONTBUILD
Comment 22•5 years ago
|
||
| Reporter | ||
Comment 23•5 years ago
|
||
Leaving open for some more removals.
Comment 24•5 years ago
|
||
| Reporter | ||
Comment 25•5 years ago
|
||
Perhaps not strictly a mozmill one... but this one can also go.
| Assignee | ||
Updated•5 years ago
|
Comment 26•5 years ago
|
||
| Reporter | ||
Comment 27•5 years ago
|
||
This is a but yucky. I don't know why CI uses a different path than local runs. Anyway...
| Reporter | ||
Comment 28•5 years ago
|
||
| Reporter | ||
Comment 29•5 years ago
|
||
Successful try with the this and the last two patches: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=f066f58f17f71a0414c3aaf5666cb58d505c2ad0
Comment 30•5 years ago
|
||
| Assignee | ||
Comment 31•5 years ago
|
||
| Assignee | ||
Comment 32•5 years ago
|
||
| Reporter | ||
Comment 33•5 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #31)
It didn't occur to me when I first converted all of this stuff, but we
should use ChromeUtils.defineModuleGetter instead of ChromeUtils.import
within the helper modules, so that we don't load a lot of things we don't
need for every test.
Will save this for later. There's a lot of things to clean up yet. Taking things out one at a time helps seeing what's left.
Comment 34•5 years ago
|
||
| Reporter | ||
Comment 35•5 years ago
|
||
The mozmill os.jsm is now unused and can be removed.
| Reporter | ||
Updated•5 years ago
|
Comment 36•5 years ago
•
|
||
Comment 37•5 years ago
|
||
| Reporter | ||
Comment 38•5 years ago
|
||
Small removal of exports - ok try at https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=c2da40145f09aa029b8d2f6afc2fc09c2b9b5dfc
Comment 39•5 years ago
|
||
Comment 40•5 years ago
|
||
| Reporter | ||
Comment 41•5 years ago
|
||
Comment 42•5 years ago
|
||
Comment 43•5 years ago
|
||
Comment 44•5 years ago
|
||
| Reporter | ||
Comment 45•5 years ago
|
||
Another small removal. Ok try at https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=90bf33b687ee2bc5ef42a5869c03f87b46d2ff2f
Comment 46•5 years ago
|
||
Comment 47•5 years ago
|
||
| Reporter | ||
Comment 48•5 years ago
|
||
Remove controller keypress
| Reporter | ||
Comment 49•5 years ago
|
||
Remove more old just from the controller.
Successful try for these two: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=774d559e0ab797999b6098cd5262988a65060e45
Comment 50•5 years ago
|
||
Comment 51•5 years ago
|
||
| Reporter | ||
Comment 52•5 years ago
|
||
The mail/test/browser/openpgp/browser_viewMessage.js Mochitest failure appears to be a failure for artifact builds.
I got it for https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=d8742fec219a175fa4eb5f7e2a1bcf974c4a3290 too where these patches weren't applied
Comment 53•5 years ago
|
||
| Reporter | ||
Comment 54•5 years ago
|
||
Good try for the patches I'm going to attach: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=1b303a6bd9eb81e59bce41532daa8c22c4c00168&selectedTaskRun=WEskS8RaQXajGs45v6jitw.0
| Reporter | ||
Comment 55•5 years ago
|
||
| Reporter | ||
Comment 56•5 years ago
|
||
| Reporter | ||
Comment 57•5 years ago
|
||
| Reporter | ||
Comment 58•5 years ago
|
||
| Reporter | ||
Comment 59•5 years ago
|
||
| Reporter | ||
Comment 60•5 years ago
|
||
| Reporter | ||
Comment 61•5 years ago
|
||
Comment 62•5 years ago
|
||
Comment 63•5 years ago
|
||
Comment 64•5 years ago
|
||
Comment 65•5 years ago
|
||
Comment 66•5 years ago
|
||
Comment 67•5 years ago
|
||
Comment 68•5 years ago
|
||
Comment 69•5 years ago
|
||
Comment 70•5 years ago
|
||
Comment 71•5 years ago
|
||
| Reporter | ||
Comment 72•5 years ago
|
||
Successful try: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=9b6602f9ad1d62a40e148060918cf7e6b57492a1
Comment 73•5 years ago
|
||
Comment 74•5 years ago
|
||
| Reporter | ||
Comment 75•5 years ago
|
||
Accidentally pushed this instead of the patch reviewed. Going to leave it in since it's just removing unused code (but unfortunately not all, will have to push a followup.)
Comment 76•5 years ago
|
||
Comment 77•5 years ago
|
||
| Reporter | ||
Comment 78•5 years ago
|
||
Successful try: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=7ff84c47de8e885ed51bdfd1c76c04e1823cce13
This test was actually disabled everywhere due to the = vs == typo. Comments said it would be a windows only thing bug it works (and AFAICR, always has) on linux too.
| Reporter | ||
Comment 79•5 years ago
|
||
Noisy but successful try: https://treeherder.mozilla.org/jobs?repo=try-comm-central&selectedTaskRun=QDeWhmxNRzuhkGSS8NEnxw.0&revision=62080583d61cfc68c1015872fea12a121f8a0679
Comment 80•5 years ago
|
||
Comment 81•5 years ago
|
||
Comment 82•5 years ago
|
||
Comment 83•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #78)
Created attachment 9185123 [details] [diff] [review]
bug_1617887_remove_mozmill_controller_mouseevent_external_usage_r.patchSuccessful try: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=7ff84c47de8e885ed51bdfd1c76c04e1823cce13
This test was actually disabled everywhere due to the = vs == typo. Comments said it would be a windows only thing bug it works (and AFAICR, always has) on linux too.
Here, the name of the patch and commit message are wrong.
| Reporter | ||
Comment 84•5 years ago
|
||
I think it's basically correct (that was the motivation) but I'll update and clarify the commit message.
Comment 85•5 years ago
|
||
Comment 86•5 years ago
|
||
| Assignee | ||
Comment 87•5 years ago
|
||
This patch also:
- uses the name
elibeverywhere elementslib.jsm is imported, which should make future changes easier. - updates the remaining elementslib types to ES classes, removing the dependency on utils.jsm.
| Assignee | ||
Comment 88•5 years ago
|
||
I've managed to remove the uses of getChromeWindow and getWindows so that they can also be removed.
Depends on D100536
| Assignee | ||
Updated•5 years ago
|
Comment 89•5 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6b11bdfcd126
Remove unused code from mozmill's elementslib. r=mkmelin
https://hg.mozilla.org/comm-central/rev/2be2d9ed0917
Remove unused functions from mozmill's utils.jsm. r=mkmelin
| Assignee | ||
Comment 90•5 years ago
|
||
Comment 91•5 years ago
|
||
Comment 92•5 years ago
|
||
| Reporter | ||
Comment 93•4 years ago
|
||
Stictly speaking perhaps not mozmill, but I think it has its root there. Anyway, unused.
Comment 94•4 years ago
|
||
| Assignee | ||
Comment 95•4 years ago
|
||
Most of this is very verbose mouse and keyboard event logging that I'm sure nobody uses. I've also reorganised some old-school logging functions to tidy up the loading of WindowHelpers.jsm.
| Assignee | ||
Comment 96•4 years ago
|
||
More stuff we have tidier ways of doing.
Comment 97•4 years ago
|
||
| Reporter | ||
Comment 98•3 years ago
|
||
Comment 99•3 years ago
|
||
| Reporter | ||
Comment 100•3 years ago
|
||
Comment 101•3 years ago
|
||
| Assignee | ||
Comment 102•3 years ago
|
||
This latest patch has introduced a number of perma-fails on Mac.
| Reporter | ||
Comment 103•3 years ago
|
||
comm/mail/test/browser/subscribe/browser_newsFilter.js and comm/mail/test/browser/folder-display/browser_rightClickMiddleClickMessages.js are problem cases. Going to leave them using clic() for now.
Successful try: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=bbc0e67393c89eb941026f2dada1f593ca7b89ae
| Reporter | ||
Updated•3 years ago
|
Comment 104•3 years ago
|
||
Updated•3 years ago
|
| Reporter | ||
Comment 105•2 years ago
|
||
| Reporter | ||
Comment 106•2 years ago
|
||
Depends on D175751
| Reporter | ||
Comment 107•2 years ago
|
||
grep -rEl "([a-zA-Z]+).doubleClick\(([a-zA-Z]+)\)" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --exclude=".*" . | xargs xargs sed -i -E "s/([a-zA-Z]+).doubleClick\(([a-zA-Z]+)\)/EventUtils.synthesizeMouseAtCenter(\2, { clickCount: 2 }, \2.ownerGlobal)/g"
Depends on D175752
| Reporter | ||
Comment 108•2 years ago
|
||
grep -rEl "([a-zA-Z]+).rightClick\(([a-zA-Z]+)\)" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --exclude=".*" . | xargs xargs sed -i -E 's/([a-zA-Z]+).rightClick\(([a-zA-Z]+)\)/EventUtils.synthesizeMouseAtCenter(\2, { type: "contextmenu", button: 2 }, \2.ownerGlobal)/g'
Depends on D175753
| Reporter | ||
Comment 109•2 years ago
|
||
grep -rEl "mc.check\(([a-zA-Z]+), ([a-zA-Z]+)\)" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --exclude=".*" . | xargs xargs sed -i -E 's/mc.check\(([a-zA-Z]+), ([a-zA-Z]+)\)/EventUtils.synthesizeMouseAtCenter(\1, { }, \1.ownerGlobal)/g'
Depends on D175754
| Reporter | ||
Comment 110•2 years ago
|
||
Depends on D175755
| Reporter | ||
Comment 111•2 years ago
|
||
grep -rEl "([a-zA-Z]+).click\((.+)\);" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -E 's/([a-zA-Z]+).click\((.+)\);/EventUtils.synthesizeMouseAtCenter(\2, { }, \2.ownerGlobal)/g'
... and some manual fixups
There were some oddities, like with controller.click() you could click some menus that weren't open.
Depends on D175756
| Reporter | ||
Comment 112•2 years ago
|
||
grep -rEl "([a-zA-Z]+).type\((.+), (.+)\);" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=chat --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -E 's/([a-zA-Z]+)\.type\((.+), (.+)\);/\2.focus();EventUtils.sendString(\3, \1.window)/g'
Depends on D175757
| Reporter | ||
Comment 113•2 years ago
|
||
Removes the fake menu.
Unfortunately the earlier patches in this series may not apply completely cleanly. Some of the fixups needed are done in this patch, but should ideally be part of some other. It got difficult tracking which exactly everthing should go...
Depends on D175758
Updated•2 years ago
|
Comment 114•2 years ago
|
||
| Reporter | ||
Comment 115•2 years ago
|
||
Leaving the usage inside modules out for now.
Also removing some sleeps that were not needed. Turns out the issues with tests using insert image dialog were resolved when making this work async (the changes in WindowHelpers.jsm)
grep -rEl "([a-zA-Z1-9]+).sleep(0);" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=chat --include=".js" --exclude="." . | xargs xargs sed -i -E 's#([a-zA-Z1-9]+).sleep(0);#await new Promise(resolve => setTimeout(resolve));#g'
grep -rEl "([a-zA-Z1-9]+).sleep();" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=chat --include=".js" --exclude="." . | xargs xargs sed -i -E 's#([a-zA-Z1-9]+).sleep();#await new Promise(resolve => setTimeout(resolve));#g'
| Reporter | ||
Updated•2 years ago
|
Comment 116•2 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/cc823633f9bf
Replace controller.sleep(0) with async setTimeout. r=leftmostcat
| Reporter | ||
Comment 117•2 years ago
|
||
| Reporter | ||
Comment 118•2 years ago
|
||
Depends on D176131
| Reporter | ||
Comment 119•2 years ago
|
||
Depends on D176132
| Reporter | ||
Comment 120•2 years ago
|
||
Depends on D176133
| Reporter | ||
Comment 121•2 years ago
|
||
Depends on D176134
| Reporter | ||
Comment 122•2 years ago
|
||
Depends on D176135
| Reporter | ||
Comment 123•2 years ago
|
||
Depends on D176136
| Reporter | ||
Comment 124•2 years ago
|
||
Depends on D176137
Comment 125•2 years ago
|
||
Comment 126•2 years ago
|
||
| Reporter | ||
Comment 127•2 years ago
|
||
This isn't really used much and where it's used it mostly for code that should be replaced. Never found it particularly useful.
| Reporter | ||
Comment 128•2 years ago
|
||
Depends on D176852
| Reporter | ||
Comment 129•2 years ago
|
||
Depends on D176853
| Reporter | ||
Comment 130•2 years ago
|
||
Depends on D176854
| Reporter | ||
Comment 131•2 years ago
|
||
So that controller itself can be removed completely, soon.
Depends on D176855
Comment 132•2 years ago
|
||
| Reporter | ||
Comment 133•2 years ago
|
||
Comment 134•2 years ago
|
||
| Reporter | ||
Comment 135•2 years ago
|
||
| Reporter | ||
Comment 136•2 years ago
|
||
I don't think I found the solution for bug 1833594, but this a minor improvement.
The test in question doesn't work with --headless since select_shift_click_row does the wrong thing with that apparently.
Comment 137•2 years ago
|
||
Comment 138•2 years ago
|
||
| Assignee | ||
Comment 139•2 years ago
|
||
I'm going to finish this off.
| Assignee | ||
Comment 140•2 years ago
|
||
We no longer support these things and have no intention of doing so.
| Assignee | ||
Comment 141•2 years ago
|
||
Depends on D189728
| Assignee | ||
Comment 142•2 years ago
|
||
mc.window is the same as window in a test's scope. That's not true in modules so they are unchanged.
Depends on D189729
| Assignee | ||
Comment 143•2 years ago
|
||
This was done with the help of ESLint's no-unused-vars rule. Not all unused variables were removed as are pieces of tests that should be fixed.
Depends on D189730
| Assignee | ||
Comment 144•2 years ago
|
||
... and get rid of Mozmill controllers at last!
This works without changing the calling code as a window's .window property is the window itself.
Although the calls will be fixed in subsequent patches.
Depends on D189731
| Assignee | ||
Comment 145•2 years ago
|
||
Depends on D189732
| Assignee | ||
Comment 146•2 years ago
|
||
mc is equal to window in the scope of test files.
Depends on D189733
| Assignee | ||
Comment 147•2 years ago
•
|
||
Next up:
- stop referring to things as controllers now that they're actually windows
- replace utils.jsm, KeyboardHelper.jsm, MouseEventHelper and MockObjectHelper functions with something more modern
- replace
WindowWatcherwith something more modern - change the helper module packaging so it no longer has
mozmillin the URLs - close this bug
| Assignee | ||
Updated•2 years ago
|
Comment 148•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0095225ba55c
Remove tests for unsupported custom folder tree features. r=mkmelin
https://hg.mozilla.org/comm-central/rev/0d9b5536c72e
Remove dead and little-used code from test helper modules. r=mkmelin
https://hg.mozilla.org/comm-central/rev/6e17d7f4b301
Stop referring to mc.window in tests. r=mkmelin
https://hg.mozilla.org/comm-central/rev/3029c347bcfb
Remove unused global variables in tests. r=mkmelin
https://hg.mozilla.org/comm-central/rev/bbb87cc8d9e3
Make the WindowHelpers module return windows instead of controllers. r=mkmelin
https://hg.mozilla.org/comm-central/rev/a68d94336da5
Drop .window where variables now refer to windows not controllers. r=mkmelin
https://hg.mozilla.org/comm-central/rev/701e15e070c4
Stop using mc in tests. r=mkmelin
| Assignee | ||
Comment 149•2 years ago
|
||
These things are not controllers, as there's no such thing any more, so let's stop calling them controllers.
| Assignee | ||
Comment 150•2 years ago
|
||
Toolkit has better ways of replacing objects with our own. We should use them.
Depends on D190426
| Assignee | ||
Comment 151•2 years ago
|
||
Depends on D190427
| Assignee | ||
Comment 152•2 years ago
|
||
Mozmill had some complicated ways of tracking windows as they opened and closed that involve timers and hacking the event loop.
We can do much better with Promises, and BrowserTestUtils already provides the tools we need.
Depends on D190428
| Assignee | ||
Comment 153•2 years ago
|
||
Mozmill's way of waiting for things to happen involved timers and spinning the event loop until it did what was wanted.
We have Promises now.
In this patch I've converted all the remaining uses of utils.waitFor and utils.sleep to use async functions,
except those in FolderDisplayHelpers.jsm, because there's so much there I put it in another patch.
Depends on D190429
| Assignee | ||
Comment 154•2 years ago
|
||
Depends on D190430
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 155•2 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #147)
- replace utils.jsm, KeyboardHelper.jsm, MouseEventHelper and MockObjectHelper functions with something more modern
I've decided to leave KeyboardHelper and MouseEventHelper as they are for now.
- change the helper module packaging so it no longer has
mozmillin the URLs
I've decided to leave this until we ESMify these modules, as it involves hundreds of changes that will only need to be changed again when we go to ESM. This can happen in another bug later.
Comment 156•2 years ago
|
||
| Assignee | ||
Comment 157•2 years ago
|
||
There's probably a few pieces here and there we can tidy up in other bugs, but I'm calling this done. RIP Mozmill.
| Reporter | ||
Comment 158•2 years ago
|
||
Woo-hoo! \o/
Description
•