Bug 1700224 - Backed out changeset 4041735c7823 (bug 1681008) per developer request. r=rjl a=rjl THUNDERBIRD_88_0b1_BUILD1 THUNDERBIRD_88_0b1_RELEASE
authorRob Lemley <rob@thunderbird.net>
Mon, 22 Mar 2021 18:19:52 -0400
changeset 41662 258d9fef16dce2cc9d102c762b618114c94b6efa
parent 41661 f618a25cfca58f9e362e223b2bf0f6c9d5ac738f
child 41663 93a32ad401f65d482f3668c97ddbcff5a7fa6959
push id3022
push userjustdave@thunderbird.net
push dateMon, 22 Mar 2021 23:19:39 +0000
treeherdercomm-beta@258d9fef16dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrjl, rjl
bugs1700224, 1681008
Bug 1700224 - Backed out changeset 4041735c7823 (bug 1681008) per developer request. r=rjl a=rjl
mail/components/extensions/parent/ext-compose.js
--- a/mail/components/extensions/parent/ext-compose.js
+++ b/mail/components/extensions/parent/ext-compose.js
@@ -283,34 +283,32 @@ async function openComposeWindow(related
 
   await setFromField(composeWindow, details, extension);
   composeWindow.gContentChanged = false;
 
   return composeWindow;
 }
 
 async function getComposeDetails(composeWindow, extension) {
-  // Force all recipient fields to be pillified, so their content can be accessed.
-  composeWindow.pillifyRecipients();
+  let composeFields = composeWindow.GetComposeDetails();
 
-  let composeFields = composeWindow.GetComposeDetails();
-  // Register the event listener before checking composeEditorReady
-  // to a eliminate potential race condition.
+  // register the event listener before checking composeEditorReady
+  // to a eliminate potential race condition
   let composeEditorReady = new Promise(resolve =>
     composeWindow.addEventListener("compose-editor-ready", resolve, {
       once: true,
     })
   );
   if (!composeWindow.composeEditorReady) {
     await composeEditorReady;
   }
   let editor = composeWindow.GetCurrentEditor();
 
   let type;
-  // Check all known nsIMsgComposeParams.
+  // check all known nsIMsgComposeParams
   switch (composeWindow.gComposeType) {
     case Ci.nsIMsgCompType.Draft:
       type = "draft";
       break;
     case Ci.nsIMsgCompType.New:
     case Ci.nsIMsgCompType.Template:
     case Ci.nsIMsgCompType.MailToUrl:
     case Ci.nsIMsgCompType.EditAsNew: