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
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
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
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
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
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
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
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
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
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
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