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

909 Коммитов

Автор SHA1 Сообщение Дата
Magnus Melin 14eec52348 Bug 1703164 - convert mail/extensions/openpgp/content/ui/enigmailKeyImportInfo.xhtml to top level <html>. r=freaktechnik
Import a public key. Once import is done a confirmation dialog is shown - this is that dialog.
It's completely terrible. But, fixing that is not in scope for this bug.

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

--HG--
extra : rebase_source : d7c3a32865b1472c93caf6e564832900ac4f1fdf
2023-12-08 10:20:54 +02:00
Kai Engert 11c1a3650b Bug 1867765 - Fix RnpPrivateKeyUnlockTracker.unprotect(). r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D195904

Depends on D195903
2023-12-11 20:54:33 +00:00
Kai Engert ce928487ea Bug 1867765 - Add a test for importing and exporting untweaked ECC keys. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D195903
2023-12-11 20:54:28 +00:00
Magnus Melin 6ce05ee48e Bug 1703164 - follow-up to 85350f460e08, untangle pointless dependency. rs=bustage-fix
--HG--
extra : amend_source : 9f122b72f5a4838987455da5f0ce85126b089f31
2023-12-08 12:06:26 +02:00
Magnus Melin 8aee2ba153 Bug 1703164 - convert mail/extensions/openpgp/content/ui/enigmailKeyManager.xhtml to top level <html>. r=freaktechnik
Tools | OpenPGP Key Manager

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

--HG--
extra : rebase_source : 5384884ee114aba7f8ad1ff74ebc178de57de5f3
2023-12-08 09:38:33 +02:00
Kai Engert 37a6c95bcd Bug 1868225 - Support library filename used by Gpg4Win version 4.2.0. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D195483

--HG--
extra : amend_source : 519faeffa5739b5e9b410e4bdbc4e329467d0952
2023-12-05 11:37:49 +02:00
Magnus Melin f1f448d090 Bug 1868214 - remove mail.openpgp.key_assistant.enable. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D195478

--HG--
extra : rebase_source : e322fa4cfbb9c7ad0c7e54f7ec1cf4e787290de2
extra : amend_source : 7e5069b4c4adac1ee8dc28eda2a140fb0f2b0a73
2023-12-05 11:26:59 +02:00
Magnus Melin 0cfde78acf Bug 1703164 - convert mail/extensions/mailviews/content/mailViewSetup.xhtml to top level <html>. r=aleca
Customize toolbar, add View. From the View widget, choose the Customize.... Then "New...".

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

--HG--
extra : rebase_source : 5e5451ec8270e74834aeb8db937ec000c6c07b87
extra : amend_source : bf915d5418d33b9e1ce408ebfce192198cb39d2c
2023-12-03 12:47:51 +02:00
Kai Engert bcfdab9d34 Bug 1862625 - Limit content-type searching to header section. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D194243

--HG--
extra : rebase_source : 03751487b056158f8c63e7e6c04e7453d2984873
2023-11-21 16:18:47 +01:00
Mark Banner 33a0fc88e8 Bug 1865550 - Change PgpMimeHandler to be registered using static registration. r=mkmelin
Also changes it to be an ES module and moves it to be registered under a resource URI as that is more consistent and easier.

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

--HG--
rename : mail/extensions/openpgp/content/modules/pgpmimeHandler.jsm => mail/extensions/openpgp/PgpMimeHandler.sys.mjs
extra : moz-landing-system : lando
2023-11-21 06:12:40 +00:00
Mark Banner cbedd075fa Bug 1865529 - Follow-up to remove unnecessary left-in debug. rs=me DONTBUILD
--HG--
extra : amend_source : 7080787dd354b2a5692ffc3f4cdff7cea20ceb91
2023-11-20 11:21:16 +00:00
Mark Banner e747d005ac Backed out changeset 5f66fa6eb666 (bug 1865550)
--HG--
extra : amend_source : 18b430da1516552ea362451da28a6f8cd1bc839a
2023-11-20 11:01:00 +00:00
Mark Banner 705139c241 Bug 1865550 - Change PgpMimeHandler to be registered using static registration. r=mkmelin
Also changes it to be an ES module and moves it to be registered under a resource URI as that is more consistent and easier.

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

--HG--
rename : mail/extensions/openpgp/content/modules/pgpmimeHandler.jsm => mail/extensions/openpgp/PgpMimeHandler.sys.mjs
extra : moz-landing-system : lando
2023-11-20 09:42:03 +00:00
Mark Banner 94534f41f5 Bug 1865529 - Simplify EnigmailCore to only handle initialisation of Enigmail components. r=mkmelin
This simpifies the code down to remove the unnecessary wrapping and resolve it into a simple init function.
The calling points of Enigmail.getService are simply replaced with a call to the new init. They could possibly be reviewed
at a later stage to see if they are still necessary or not.

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

--HG--
extra : moz-landing-system : lando
2023-11-20 09:42:03 +00:00
Magnus Melin 00c97f47c2 Bug 1801529 - Make docs valid for eslint-plugin-jsdoc in trust.jsm and uris.jsm. rs=me
--HG--
extra : amend_source : cd141d55b4d26cb2d2fc3aa8a900a11359a0681c
2023-11-19 12:39:39 +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 6a0aebcb94 Bug 1703164 - convert mail/extensions/am-e2e/am-e2e.xhtml to top level <html>. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D193279

--HG--
extra : rebase_source : ab0b66de4e1670a6921449fa2f44d2eb53dd2096
2023-11-12 12:19:46 +02:00
Kai Engert e111d25183 Bug 1863707 - Show better error message for OpenPGP signature date mismatch. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D193052

--HG--
extra : amend_source : 61b33c8783bdfa7ceeed20c8b336e30cf7aee236
2023-11-10 08:06:09 +02:00
Kai Engert 377cdc6dea Bug 1863705 - Show OpenPGP signature timestamp for rejected signatures. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D193051

--HG--
extra : amend_source : c18a50cbb6c1933c1c949f204542790e78c1f718
2023-11-10 08:05:26 +02:00
Steffano Utreras a6ce15919a Bug 1861286 - Change ambiguous button label for exporting public keys to a file in the OpenPGP Key Manager context menu. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D193071

--HG--
extra : amend_source : 7627dadeb65f1ce8d0310ab290a702a9bdc25616
2023-11-09 09:44:33 -08:00
Magnus Melin 811b3616a0 Bug 1803986 - Part 3: Remove EnigmailData.convertToUnicode usages. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D192369

--HG--
extra : rebase_source : d0a5e53e355449c3e0b914b7ddcb26e923357e48
extra : amend_source : 9507ddf77b605ac7031268a44798cb6449501547
2023-11-08 12:48:33 +02:00
Magnus Melin fa5c219368 Bug 1803986 - Part 2: convert unconventional string conversions. r=kaie
Remove some non-standard string conversions and unneeded conversion methods.

var {EnigmailData} = ChromeUtils.import("chrome://openpgp/content/modules/data.jsm");
var {MailStringUtils} = ChromeUtils.import("resource:///modules/MailStringUtils.jsm");
var text = "blä";
var A = EnigmailData.getUnicodeData(text)
var B = new TextDecoder("ISO-8859-1").decode(MailStringUtils.byteStringToUint8Array(text));
A + " vs " + B;

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

--HG--
extra : rebase_source : b1c18d8d59202598f466c2b36896a239c3aa83e3
extra : amend_source : ddb1d5dbf6201ce39f4aedccf6529cc8ad19e410
2023-11-08 12:48:23 +02:00
Kai Engert 5abbc74f3a Bug 1862625 - Add Content-Type header to decrypted PGP/MIME if it's missing. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D192597

--HG--
extra : amend_source : 13fd2eedc38e3c2b1d694a6b3ea3cd57ce6e293a
extra : absorb_source : f326c4f5378d2ffbaa91560744003d6d9b20cea9
2023-11-04 12:46:06 +02:00
Alessandro Castellani 7d101fa3a9 Bug 1854255 - Enforce prefer-const eslint rule in the whole mail/ directory. r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D192040

--HG--
extra : moz-landing-system : lando
2023-10-28 01:16:36 +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
Magnus Melin fe95123a14 Bug 1677088 - Remove EnigmailWksMimeHandler. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D191957

--HG--
extra : rebase_source : 7f871948f413bf6488a514253876951bb49de374
extra : amend_source : 83e65e018bb4b5667541165df71290c00a0e886f
2023-10-27 08:04:55 +03:00
Magnus Melin b9a837423d Bug 1677088 - Remove unused and not fully implemented EnigmailWks. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D191956

--HG--
extra : rebase_source : 2c29d268d8789b83d229f4f2961f43e8b6356ccf
extra : amend_source : f4ec36171304e462e14aa80f728b3d2e327ad58f
2023-10-27 08:04:46 +03:00
Magnus Melin 57870c8e45 Bug 1853674 - Follow-up: lazy-load mimeParser. r=kaie
comm/mail/base/test/performance/browser_startup.js is failing

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

--HG--
extra : amend_source : 55d8a75cea50b909856946a71ae5adb3f2c6a22e
2023-10-26 13:01:59 +01:00
Kai Engert dcdf5864f8 Bug 1853674 - Add the Autocrypt Gossip key distribution mechanism. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D188467

--HG--
extra : amend_source : 8abc1b203be85aca9c54411166c1cf67b9e40d46
2023-10-26 10:36:29 +01:00
Kai Engert 349d29b468 Bug 1859978 - Fix passphrase protection if subkeys are imported without a primary secret key. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191692

--HG--
extra : amend_source : 3acabdad431e200a7ba66e2cc9724aae2d54473a
2023-10-25 17:40:23 +01:00
Martin Giger 36434e77f0 Bug 1860082 - Import NetUtil as an ES module. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191454

--HG--
extra : amend_source : 154391ab3f189d0bb0aa8e89c165c4d398787e5c
extra : histedit_source : 7a9452a144010f7fe4fb92751cb57ed51fc891af
2023-10-24 17:36:42 +01:00
Kai Engert 7ede5c31ed Bug 1854592 - Introduce a pref to optionally accept S/MIME message signatures that use SHA-1. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191203

--HG--
rename : mailnews/mime/test/unit/test_smime_decrypt.js => mailnews/mime/test/unit/test_smime_decrypt_allow_sha1.js
extra : amend_source : 05c7fdea97d37d9cdc64e46b533cb9dbc8ba9de8
2023-10-20 08:56:17 +03:00
Magnus Melin 9102a7f6ce Backed out changeset db1c15ced123 (bug 1854592) for test failures. rs=backout
--HG--
extra : amend_source : f6b92d465f47ef5b3802bfab5a85e90a724536a9
2023-10-18 22:29:15 +03:00
Kai Engert 936c24a167 Bug 1854592 - Introduce a pref to optionally accept S/MIME message signatures that use SHA-1. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191203

--HG--
extra : rebase_source : baff8cec18c8ea1cd1a34779c86996a4d210da15
2023-10-17 14:19:54 +00:00
Magnus Melin e46ee7e77a Bug 1859273 - Port bug 1857999 to Thunderbird - Stop using xml-stylesheet processing instructions for styling non-test xhtml documents. r=freaktechnik
Using https://github.com/Mossop/depi

find -name "*.xhtml" -not -path "./suite/*" > /tmp/depi/filelist.txt
node index.js path-to/comm/

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

--HG--
extra : amend_source : 9b289924f64aa4b22a9ebfaaf3c8853bc1d2f69d
extra : absorb_source : 3aa297db246dfd7ebcbac5d8465f4b639c054c54
2023-10-18 11:00:28 +01:00
Martin Giger 724770f423 Bug 1858750 - Update label of unified toolbar view button to match current view. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D191112

--HG--
extra : amend_source : 0d4ff0b7a5968856bbba77eaf7bc4aea8a87ffa9
2023-10-16 19:14:39 +00:00
Magnus Melin a4bd0dffab Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik
When switching between folders the last view for the specific folder should be applied.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1838589-fix-mail-view.patch

Differential Revision: https://phabricator.services.mozilla.com/D190757
2023-10-16 11:11:10 +00:00
Kai Engert 84c163cc36 Bug 1838589 - Backed out changeset 7d5e44997df5 for test failures. 2023-10-13 14:11:43 +02:00
Magnus Melin d63e050575 Bug 1838589 - Restore the View button settings for the folder when revisiting it. r=freaktechnik
When switching between folders the last view for the specific folder should be applied.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1838589-fix-mail-view.patch

Differential Revision: https://phabricator.services.mozilla.com/D190757
2023-10-12 19:24:52 +00:00
Magnus Melin 33e8b36813 Bug 1803986 - Remove nsIScriptableUnicodeConverter usage from OpenPGP code. Part 1: UTF-8 to bytestring cases. r=john.bieling
Use standard means to get bytestring from utf-8 data.

```
var {EnigmailData} = ChromeUtils.import("chrome://openpgp/content/modules/data.jsm");
var {MailStringUtils} = ChromeUtils.import("resource:///modules/MailStringUtils.jsm");
var text = "blä";
var A = EnigmailData.convertFromUnicode(text, "utf-8")
var B = MailStringUtils.stringToByteString(text);
A + " vs " + B;
```

Differential Revision: https://phabricator.services.mozilla.com/D190387
2023-10-11 09:48:00 +00:00
Magnus Melin fcbc72e299 Bug 1857541 - "Send Autocrypt key in header" should be disabled if there is no key. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D190330

--HG--
extra : rebase_source : 89e0c27b4eb165edb1ea1265659fd07d12220ab0
2023-10-06 19:09:41 +00:00
Martin Giger 4bf2603d2f Bug 1812602 - Remove unused enigmail dialog method and strings. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D189952

--HG--
extra : amend_source : 09947010d040847248d7ec291a0f148ea38d5b69
2023-10-05 08:24:02 +03:00
Geoff Lankow 3961ed8dda Bug 1852922 - Update the encryption status UI via the request. r=kaie
Uses the nsIMsgSMIMEHeaderSink, which can be accessed from nsIMailChannel to forward calls to the UI, instead of saving references to the UI.

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

--HG--
extra : rebase_source : 1a6e405278512cee8b7447270c509bda41d98669
extra : amend_source : 8b29482d2d3cd4cc00fc0192602c68b146bdbc52
2023-09-22 13:39:59 +12:00
Geoff Lankow 217ed247b0 Bug 1852922 - Use nsIMailChannel instead of a window reference in Enigmail code. r=kaie
This is a bit of a hack but it allows the content handlers to access the current request rather than try get information about it from the window.

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

--HG--
extra : rebase_source : d6e9fc85b770e719ee917550c65b2a843672fe5f
extra : amend_source : 86e90853200f83721a931081ef921ec9b41751d1
2023-09-22 12:30:58 +12:00
Magnus Melin 61f4da66fc Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/fixExchangeMsg.jsm. rs=me 2023-09-24 12:45:40 +03:00
Magnus Melin a2e0ee8b0c Bug 1788534 - Use (decrypted) subject from database when composing. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D188713

--HG--
rename : mail/test/browser/openpgp/browser_editDraftTemplate.js => mail/test/browser/openpgp/composition/browser_editDraftTemplate.js
extra : moz-landing-system : lando
2023-09-22 21:46:26 +00:00
Magnus Melin b852f7df05 Backed out changeset 48460db23106 (bug 1788534) for test failures. rs=backout DONTBUILD
comm/mailnews/compose/test/unit/test_autoReply.js
comm/mail/test/browser/openpgp/browser_openPGPDrafts.js

--HG--
rename : mail/test/browser/openpgp/composition/browser_editDraftTemplate.js => mail/test/browser/openpgp/browser_editDraftTemplate.js
extra : amend_source : dd437c2c1d9e1eb76e263c676e371f494200fd24
2023-09-22 14:34:48 +03:00
Magnus Melin d5d1fef58c Bug 1788534 - Use (decrypted) subject from database when composing. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D188713

--HG--
rename : mail/test/browser/openpgp/browser_editDraftTemplate.js => mail/test/browser/openpgp/composition/browser_editDraftTemplate.js
extra : amend_source : cd21933ed5852c6207228fdd44a8c753b6067753
2023-09-22 11:50:20 +02:00
Geoff Lankow 9b347e9474 Bug 1851871 - Notify the front end when headers are ready, and try to update the display then. r=BenC,aleca,freaktechnik
This is a little bit of a hack, but it should appear to perform much better.

Once `nsMimeHtmlEmitter` has set the message header data on the `nsIMailChannel`, it causes an
`onStatusChange` event to fire, and the front end responds by displaying the headers.

To avoid confusion when the headers update and the message doesn't (which annoyingly won't happen
until the whole message is ready), on STATE_START the previous message is cleared from the display.

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

--HG--
extra : amend_source : 704adcfcbf62e70b6495bd3046abc70d8303e988
2023-09-20 11:38:35 +02:00
Magnus Melin 933a56297d Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/wkdLookup.jsm. rs=me
--HG--
extra : amend_source : 0d93da42c8b12a29fa534dd0e434594cc0bd5a36
2023-09-16 13:39:44 +03:00