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

102 Коммитов

Автор SHA1 Сообщение Дата
Rob Lemley 2deb321659 Bug 1869405 - Ensure vendored Rust code and associated generated files are not linted. r=ikey
Differential Revision: https://phabricator.services.mozilla.com/D196102

--HG--
extra : rebase_source : 3cc65b7b7518afaeb2d5ae26ce0aaa1f9e618cb0
extra : histedit_source : 343877af30d665ea39291f17bba3920a93b44b52
2023-12-11 20:32:03 +00:00
Rob Lemley 9e2790ddf3 Bug 1869405 - mach commlint should not use unconfigured linters. r=dandarnell
This change will ensure that `mach commlint` only presents linters with config
files in /comm/tools/lint as valid. There is no fallback to using configs in
/tools/lint.

Originally mach commlint was set up to use linter config files from /tools/lint
(mozilla-central) as a fallback when a linter had no file in /comm/tools/lint.

Thunderbird's needs have evolved since, and using linter configs from gecko cause
more problems than useful feedback, mostly due to missing path excludes.

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

--HG--
extra : amend_source : 57490f4ed2869df09ee834586cde6d5a3aa7419d
extra : histedit_source : 5244b076909ee856b240a88fac334df6d2f5a7bd
2023-12-12 11:16:29 -05:00
Magnus Melin 14bb156e3c Bug 1867860 - Make starting with `--migration` open the import tab. r=aleca
Removes the old migrator that - when it worked - would open an import wizard (which hasn't worked since tb91, since it would need to include customElements.js directly and it doesn't).
Instead, if starting with --migration, show the import tab. --migration is listed for all toolkit, so might as well make it do something useful.
The migration is now instead handled where Thunderbird normally handles command line arguments.

Also convert MessengerContentHandler.jsm to MessengerContentHandler.sys.mjs.

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

--HG--
rename : mail/components/MessengerContentHandler.jsm => mail/components/MessengerContentHandler.sys.mjs
2023-12-11 20:19:49 +00:00
Magnus Melin 76be383081 Backed out changeset a1077a48dd8b (bug 1867860)
Test failues in comm/mail/test/browser/composition/browser_attachment.js

--HG--
rename : mail/components/MessengerContentHandler.sys.mjs => mail/components/MessengerContentHandler.jsm
extra : amend_source : bacf02fd31542b3e93931147abd80cc55fedd97b
2023-12-10 22:22:05 +02:00
Magnus Melin 3b19f9bf59 Bug 1867860 - Make starting with `--migration` open the import tab. r=aleca
Removes the old migrator that - when it worked - would open an import wizard (which hasn't worked since tb91, since it would need to include customElements.js directly and it doesn't).
Instead, if starting with --migration, show the import tab. --migration is listed for all toolkit, so might as well make it do something useful.
The migration is now instead handled where Thunderbird normally handles command line arguments.

Also convert MessengerContentHandler.jsm to MessengerContentHandler.sys.mjs.

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

--HG--
rename : mail/components/MessengerContentHandler.jsm => mail/components/MessengerContentHandler.sys.mjs
extra : rebase_source : 7a157820a46880aa6c7358f40befd2160ed88e4b
2023-12-10 12:56:59 +02:00
Alessandro Castellani 6cc041af2c Bug 1867878 - Convert UIDensity to es6 module. r=vineet
Differential Revision: https://phabricator.services.mozilla.com/D195320

--HG--
rename : mail/modules/UIDensity.jsm => mail/modules/UIDensity.sys.mjs
extra : moz-landing-system : lando
2023-12-07 17:36:43 +00:00
Rob Lemley 1a1b581207 Bug 1867131 - Port bug 1789033: Check file-perm and file-whitespace on YAML files. r=aleca
Drive-by adding TOML files since they will soon exist.

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

--HG--
extra : moz-landing-system : lando
2023-11-29 05:23:05 +00:00
Rob Lemley 0a96dd6aad Bug 1867075 - Remove irrelevant paths from l10n linters. r=dandarnell
Fixes a bogus warning about l10n.yml not being supported.

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

--HG--
extra : moz-landing-system : lando
2023-11-29 05:20:37 +00:00
Alessandro Castellani c4cfb59919 Bug 1866180 - ESMify UIFontSize module. r=vineet
Differential Revision: https://phabricator.services.mozilla.com/D194450

--HG--
rename : mail/modules/UIFontSize.jsm => mail/modules/UIFontSize.sys.mjs
extra : amend_source : 9fcb77851318f31f23efc8b7de40fb99f1833fd3
2023-11-23 20:06:01 +02:00
Geoff Lankow 19b668edba Bug 1864809 - Split DNS.jsm into DNS.sys.mjs and dnsWorker.js. r=mkmelin
Before fixing the actual bug, let's tidy up this confusing mess of a file which is both a module and a worker.

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

--HG--
rename : mail/modules/DNS.jsm => mail/modules/DNS.sys.mjs
rename : mail/modules/DNS.jsm => mail/modules/dnsWorker.js
extra : moz-landing-system : lando
2023-11-17 07:23:09 +00:00
Magnus Melin 6c2d3549e0 Bug 1677088 - follow-up, remove webKey and wksMimeHandler references. rs=bustage-fix 2023-10-27 08:50:41 +03:00
Rob Lemley f44350be06 Bug 1860861 - Port bug 1858715: Remove pdfviewer strings from linter and l10n_merge jobs; use viewer.ftl. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D191780

--HG--
extra : amend_source : c5efe5655547846dd7e86ca9f4be2ca2dc753895
2023-10-26 10:37:57 +01:00
Rob Lemley cdaa82f474 Bug 1845794 - Expose beta brand strings. r=aleca
Fix for strings build failure on beta.

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

--HG--
extra : amend_source : 4e1904e48c8d1678ebce51d0a4f7f7941a0ac049
extra : histedit_source : 3e56dee1ea9f5fe58023caee29ecc3173ea13cae
2023-10-24 17:35:19 +01:00
John Bieling b668327929 Bug 1859090 - ESMify ExtensionSupport.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191180

--HG--
rename : mail/modules/ExtensionSupport.jsm => mail/modules/ExtensionSupport.sys.mjs
extra : moz-landing-system : lando
2023-10-18 16:45:48 +00:00
John Bieling 35fe7ac51d Bug 1859090 - ESMify ExtensionsUI.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191179

--HG--
rename : mail/modules/ExtensionsUI.jsm => mail/modules/ExtensionsUI.sys.mjs
extra : moz-landing-system : lando
2023-10-18 16:45:48 +00:00
John Bieling e4cec32b56 Bug 1859090 - Remove leftover entries in tools/esmify/map.json. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191178

--HG--
extra : moz-landing-system : lando
2023-10-18 16:45:47 +00:00
John Bieling 8895f39e38 Bug 1859090 - ESMify ExtensionToolbarButtons.jsm and MailExtensionShortcuts.jsm. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D191009

--HG--
rename : mail/components/extensions/ExtensionToolbarButtons.jsm => mail/components/extensions/ExtensionToolbarButtons.sys.mjs
rename : mail/components/extensions/MailExtensionShortcuts.jsm => mail/components/extensions/MailExtensionShortcuts.sys.mjs
extra : moz-landing-system : lando
2023-10-18 16:45:47 +00:00
Daniel Darnell 2820fab618 Bug 1853891 - Port bug 1593072: Use different entitlement files for child processes and other resources. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D188680

--HG--
rename : build/macosx/hardenedruntime/developer.entitlements.xml => build/macosx/hardenedruntime/v1/developer/browser.xml
rename : build/macosx/hardenedruntime/production.entitlements.xml => build/macosx/hardenedruntime/v1/production/browser.xml
extra : amend_source : 93cf7e9e69132659ba67a944171c658fabe3e907
2023-09-20 06:12:41 +00:00
Vineet Deo 2fe1e1fa1b Bug 1851984 - ESMify Account Creation Modules. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D187667

--HG--
rename : mail/components/accountcreation/AccountConfig.jsm => mail/components/accountcreation/modules/AccountConfig.sys.mjs
rename : mail/components/accountcreation/AccountCreationUtils.jsm => mail/components/accountcreation/modules/AccountCreationUtils.sys.mjs
rename : mail/components/accountcreation/ConfigVerifier.jsm => mail/components/accountcreation/modules/ConfigVerifier.sys.mjs
rename : mail/components/accountcreation/CreateInBackend.jsm => mail/components/accountcreation/modules/CreateInBackend.sys.mjs
rename : mail/components/accountcreation/ExchangeAutoDiscover.jsm => mail/components/accountcreation/modules/ExchangeAutoDiscover.sys.mjs
rename : mail/components/accountcreation/FetchConfig.jsm => mail/components/accountcreation/modules/FetchConfig.sys.mjs
rename : mail/components/accountcreation/FetchHTTP.jsm => mail/components/accountcreation/modules/FetchHTTP.sys.mjs
rename : mail/components/accountcreation/GuessConfig.jsm => mail/components/accountcreation/modules/GuessConfig.sys.mjs
rename : mail/components/accountcreation/Sanitizer.jsm => mail/components/accountcreation/modules/Sanitizer.sys.mjs
rename : mail/components/accountcreation/readFromXML.jsm => mail/components/accountcreation/modules/readFromXML.sys.mjs
extra : moz-landing-system : lando
2023-09-15 23:03:57 +00:00
Magnus Melin 5b3604afd1 Bug 1841414 - remove MailNewsCommandLineHandler.jsm. r=babolivier
We don't ever produce internal urls with ?messageid=
Made some protocol handling more explicit (imap: would be handled by "other necko url" before)

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

--HG--
extra : rebase_source : 0031325e393cfb9aa9272be021ed61be301f6930
extra : amend_source : ac8bffb69ae520245da18c00a7011428ec648fe3
2023-09-05 13:12:12 +03:00
Sean Burke 151cb9e647 Bug 1847647 - ESMify calendar utility modules. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D185875

--HG--
rename : calendar/base/modules/calUtils.jsm => calendar/base/modules/calUtils.sys.mjs
rename : calendar/base/modules/utils/calACLUtils.jsm => calendar/base/modules/utils/calACLUtils.sys.mjs
rename : calendar/base/modules/utils/calAlarmUtils.jsm => calendar/base/modules/utils/calAlarmUtils.sys.mjs
rename : calendar/base/modules/utils/calAuthUtils.jsm => calendar/base/modules/utils/calAuthUtils.sys.mjs
rename : calendar/base/modules/utils/calCategoryUtils.jsm => calendar/base/modules/utils/calCategoryUtils.sys.mjs
rename : calendar/base/modules/utils/calDataUtils.jsm => calendar/base/modules/utils/calDataUtils.sys.mjs
rename : calendar/base/modules/utils/calDateTimeFormatter.jsm => calendar/base/modules/utils/calDateTimeFormatter.sys.mjs
rename : calendar/base/modules/utils/calDateTimeUtils.jsm => calendar/base/modules/utils/calDateTimeUtils.sys.mjs
rename : calendar/base/modules/utils/calEmailUtils.jsm => calendar/base/modules/utils/calEmailUtils.sys.mjs
rename : calendar/base/modules/utils/calInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.sys.mjs
rename : calendar/base/modules/utils/calItemUtils.jsm => calendar/base/modules/utils/calItemUtils.sys.mjs
rename : calendar/base/modules/utils/calIteratorUtils.jsm => calendar/base/modules/utils/calIteratorUtils.sys.mjs
rename : calendar/base/modules/utils/calItipUtils.jsm => calendar/base/modules/utils/calItipUtils.sys.mjs
rename : calendar/base/modules/utils/calL10NUtils.jsm => calendar/base/modules/utils/calL10NUtils.sys.mjs
rename : calendar/base/modules/utils/calPrintUtils.jsm => calendar/base/modules/utils/calPrintUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderDetectionUtils.jsm => calendar/base/modules/utils/calProviderDetectionUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderUtils.jsm => calendar/base/modules/utils/calProviderUtils.sys.mjs
rename : calendar/base/modules/utils/calUnifinderUtils.jsm => calendar/base/modules/utils/calUnifinderUtils.sys.mjs
rename : calendar/base/modules/utils/calViewUtils.jsm => calendar/base/modules/utils/calViewUtils.sys.mjs
rename : calendar/base/modules/utils/calWindowUtils.jsm => calendar/base/modules/utils/calWindowUtils.sys.mjs
rename : calendar/base/modules/utils/calXMLUtils.jsm => calendar/base/modules/utils/calXMLUtils.sys.mjs
extra : amend_source : c2e9643e8c3f953786dd86e61743c299214d5c48
2023-08-15 11:08:52 +01:00
Alessandro Castellani 10d2c6692d No Bug - Remove eslint Services.jsm rule after bug 1780695. rs=bustagefix DONTBUILD 2023-07-10 19:55:33 -07:00
Rob Lemley 670cd4898c Bug 1836876 - Correctly ignore third party code during esmification. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D180233

--HG--
extra : moz-landing-system : lando
2023-06-08 15:44:00 +00:00
Magnus Melin a8cce56ff0 Bug 1834662 - Port Convert ExtensionsUI.jsm strings to Fluent to Thunderbird. r=john.bieling
Depends on: D179183

This is syncing a lot of semi-forked code.

Differential Revision: https://phabricator.services.mozilla.com/D179035
2023-05-30 11:19:51 +00:00
Rob Lemley 8721bb93fc Bug 1835311 - Port bug 1831872: Remove sync strings from l10n configurations. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D179223
2023-05-26 14:48:39 +00:00
Rob Lemley 4237aaecd2 Bug 1832130 - Port bug 1508369: Add stylelint to mach commlint. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D178832

--HG--
rename : .eslintignore => .stylelintignore
extra : moz-landing-system : lando
2023-05-24 18:49:33 +00:00
Alessandro Castellani 36c5fa782a Bug 1831101 - Follow up: Fix black lint. rs=bustage-fix DONTBUILD
--HG--
extra : amend_source : fd4b56cd11c4e02e3e5a554fc946118053a71b47
2023-05-10 17:16:10 -07:00
Rob Lemley 2b226a774c Bug 1831101 - Port bug 1829618: Format JSON files with Prettier (config update). r=dandarnell
Depends on D177275

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

--HG--
extra : moz-landing-system : lando
2023-05-10 22:02:33 +00:00
Rob Lemley abcec1eac4 Bug 1831588 - Teach ESLint to ignore paths from ThirdPartyPaths.txt. r=aleca
Copy code from m-c's .eslintrc.js that reads ThirdPartyPaths.txt (and Generated.txt)
and adds the contents to ignorePatterns.
Since those files are prefixed with "comm/", ESLint needs to drop the prefix
because `commlint -l eslint` always runs from ``$topsrcdir/comm` so that the
correct .eslintignore and .prettierignore files are found.

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

--HG--
extra : moz-landing-system : lando
2023-05-06 09:40:40 +00:00
Sean Burke cbb6191d49 Bug 1830560 - ESMify our enterprise policy schema. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D176773

--HG--
rename : mail/components/enterprisepolicies/schemas/schema.jsm => mail/components/enterprisepolicies/schemas/schema.sys.mjs
extra : moz-landing-system : lando
2023-04-29 00:27:03 +00:00
Rob Lemley 6a92e861a5 Bug 1828777 - Port bug 1828418: [fluent-lint] Read brands from Fluent files. r=dandarnell
Differential Revision: https://phabricator.services.mozilla.com/D175818

--HG--
extra : amend_source : 63ceb5629d3f69dcef71ebf8f1dfaeb21690e518
2023-04-18 23:42:16 +00:00
Sean Burke dacffec7cf Bug 1827731 - Clean up CalICSCalendar in preparation for refactor. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D175285

--HG--
rename : calendar/providers/ics/CalICSCalendar.jsm => calendar/providers/ics/CalICSCalendar.sys.mjs
extra : amend_source : 4b11bf91f531736f6b2ef6e25fec136a6b7c8444
2023-04-17 17:11:36 +00:00
Magnus Melin de4f22e8fe Bug 1788086 - Remove temporary server when account setup is finished. r=leftmostcat
Modernize verifyConfig.
Hook up unload (cancel) to remove the temporary server if we got that far.

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

--HG--
rename : mail/components/accountcreation/verifyConfig.jsm => mail/components/accountcreation/ConfigVerifier.jsm
2023-04-17 00:15:43 +00:00
Rob Lemley 5b3b9429cd Bug 1825109 - Exclude timezones.properties from codespell lint. r=leftmostcat
It makes more sense to exclude the Timezones file than to exclude the word "nome"
since it actually is a semi-common misspelling of "none" and codespell should
reflect`that in a future release rather than suggesting "gnome."

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

--HG--
extra : moz-landing-system : lando
2023-04-04 16:52:50 +00:00
Rob Lemley 261f8c676a Bug 1825109 - Add "nome" to codespell exclusions. r=leftmostcat
Codespell was updated to 2.2.4 in bug 1824421. Among its changes is the addition
of "nome" as a misspelling of "gnome". https://github.com/codespell-project/codespell/pull/2675

Nome, Alaska is a real place though and is listed in the IANA "friendly" timezone
names list as of version 2023a.

Exclude list is now sorted as well.

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

--HG--
extra : amend_source : f0667d13aeeebbce0ca31d8239a95d0c9c77eca5
2023-03-29 21:04:07 +11:00
Rob Lemley f7037c98e3 Bug 1816956 - Vendor tb-fluent-migrate into comm/third_party/python. r=dandarnell
This is the forked fluent.migrate that is used to run Thunderbird Fluent
string migrations.

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

--HG--
extra : amend_source : f92e3e68430a789e025b2de05cdf53368cfc5bfe
2023-03-25 20:17:12 +11:00
Rob Lemley ffca7da7ce Backed out 2 changesets (bug 1816956) - incorrect file content. r=backout a=rjl DONTBUILD
Backed out changeset 4450f0adaf4f (bug 1816956)
Backed out changeset 6623231564b7 (bug 1816956)
2023-03-21 18:27:32 -04:00
Rob Lemley e835aafeac Bug 1816956 - Vendor tb-fluent-migrate into comm/third_party/python. r=dandarnell
This is the forked fluent.migrate that is used to run Thunderbird Fluent
string migrations.

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

--HG--
extra : moz-landing-system : lando
2023-03-21 21:54:56 +00:00
Rob Lemley 80e34c14b9 Bug 1822061 - Port bug 1811850: Replace isort linter with ruff. r=dandarnell
This will trigger some sorting changes due to lack of support in ruff for isort's
custom classifications.

Depends on D172728

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

--HG--
extra : moz-landing-system : lando
2023-03-20 22:40:28 +00:00
Rob Lemley e077c7d362 Bug 1822061 - Port bug 1811850: Replace flake8 linter with ruff. r=dandarnell
Depends on D172592

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

--HG--
rename : tools/lint/flake8.yml => tools/lint/ruff.yml
extra : moz-landing-system : lando
2023-03-20 22:40:28 +00:00
Rob Lemley 9fdc5a9016 Bug 1809653 - Shellcheck fixes for smime data-generation scripts. r=kaie
Changes as suggested by "shellcheck" linter.

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

--HG--
extra : amend_source : 405ad1ae053d37e671766ed5e6831c682c1118b1
2023-03-14 20:30:38 +11:00
Geoff Lankow ebaa761884 Bug 1783501 - Convert JsTreeSelection.jsm to an ES Module. r=freaktechnik
... and modernise the test.

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

--HG--
rename : mailnews/base/src/JsTreeSelection.jsm => mail/base/content/widgets/tree-selection.mjs
rename : mailnews/base/test/unit/test_jsTreeSelection.js => mail/base/test/unit/test_treeSelection.js
extra : rebase_source : 14ef23a72b147a52251dfa00ceba59c8517bc921
extra : amend_source : 10aef17987ef7253cc0bd4bd3737f0f884e1ec22
2023-01-24 17:25:05 +13:00
Martin Giger cbebed609c Bug 1816868 - tb-esmify should update imports in all *.mjs files. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D169887

--HG--
extra : moz-landing-system : lando
2023-02-15 15:38:33 +00:00
Ping Chen 936387d0f8 Bug 1813034 - Port bug 1811633: Use our own asn1js bundle without depending on m-c. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D168737

--HG--
extra : amend_source : 42ed69fa269b522a338ad3f936d697e5f380dbf4
2023-02-09 21:39:19 +11:00
Rob Lemley d3b64c3e4e Backed out changeset ca8189b2fb42 (Bug 1813034). r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D169003

--HG--
extra : amend_source : efa11abd0dbda85fa48faaa572d3e04f0e441a45
2023-02-09 21:37:34 +11:00
Ping Chen 43bda0c863 Bug 1813034 - Port bug 1811633: Use our own asn1js bundle without depending on m-c. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D168354

--HG--
extra : rebase_source : 06352c9e48ff4594cd7b9accd50122429ff51656
2023-01-31 23:04:24 +00:00
Rob Lemley 36a071513a Bug 1808341 - Port bug 1808288: Run file-whitespace linter on more file types. r=mkmelin
Triggered by D165849, sync'd file list with m-c.

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

--HG--
extra : amend_source : 7fb5fefe8773bc1f379c2e01ad733f5df913b2c2
2023-01-05 15:42:47 +11:00
Rob Lemley 0883ca1609 Bug 1808341 - Enable file-perm linter on more file types. r=mkmelin
Roll-up of bugs 1808288, 1802290, 1808351.

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

--HG--
extra : amend_source : ae9f279ae9a628717308b9f56eaac12d8c53cdc8
2023-01-05 15:42:22 +11:00
Rob Lemley 2f9e5d0e6b Bug 1799496 - Fix l10n linter to use new strings repos. r=freaktechnik
Requires bug 1806157 on mozilla-central.

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

--HG--
extra : amend_source : 4b38a3fd06fe29d7e4793953c959bec09674f829
2023-01-04 09:41:21 +11:00
Rob Lemley 0a3539e523 Bug 1803829 - Reformat Python files to standard line length of 99 via black. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D164734

--HG--
extra : moz-landing-system : lando
2022-12-19 21:10:10 +00:00