Bug 1594000 - Follow up to fix syntax error in OpenPGP code. r=mkmelin DONTBUILD
authorKai Engert <kaie@kuix.de>
Wed, 22 Jan 2020 12:07:24 +0100
changeset 37992 3d63a92809a3f5ab76698a1e58c9bec61429bfc1
parent 37991 64408ab633c4bec9c67c10faad035f952a51ddbf
child 37993 f3245d8cd44dd809348e5685676779c8d2006e8e
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewersmkmelin
bugs1594000
Bug 1594000 - Follow up to fix syntax error in OpenPGP code. r=mkmelin DONTBUILD
mail/extensions/openpgp/content/modules/windows.jsm
--- a/mail/extensions/openpgp/content/modules/windows.jsm
+++ b/mail/extensions/openpgp/content/modules/windows.jsm
@@ -89,29 +89,28 @@ var EnigmailWindows = {
    * Determine the best possible window to serve as parent window for dialogs.
    *
    * @return: nsIWindow object
    */
   getBestParentWin: function() {
     var windowManager = Cc[APPSHELL_MEDIATOR_CONTRACTID].getService(Ci.nsIWindowMediator);
 
     var bestFit = null;
-    var winEnum = ;
 
     for (let win of windowManager.getEnumerator(null)) {
       if (win.location.href.search(/\/messenger.xhtml$/) > 0) {
         bestFit = win;
       }
       if (!bestFit && win.location.href.search(/\/messengercompose.xhtml$/) > 0) {
         bestFit = win;
       }
     }
 
     if (!bestFit) {
-      winEnum = windowManager.getEnumerator(null);
+      var winEnum = windowManager.getEnumerator(null);
       bestFit = winEnum.getNext();
     }
 
     return bestFit;
   },
 
   /**
    * Iterate through the frames of a window and return the first frame with a