Bug 1508175 - Stop assigning to undeclared, unused variable windowToInheritFrom. r=aceman
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 19 Nov 2018 12:34:34 +1300
changeset 33736 2dd62f4bcac3a09938c917b53ca16790d61ea295
parent 33735 6b3a824d8c82659a9792374ae51cba2a3141f1e7
child 33737 e8f1be3803a68aca943f862e4772e0c014ae2045
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersaceman
bugs1508175
Bug 1508175 - Stop assigning to undeclared, unused variable windowToInheritFrom. r=aceman
mail/base/content/mailTabs.js
--- a/mail/base/content/mailTabs.js
+++ b/mail/base/content/mailTabs.js
@@ -62,24 +62,16 @@ var mailTabType = {
         folder: true,
         accountCentral: true,
         message: false,
       },
       openFirstTab(aTab) {
         this.openTab(aTab, true, new MessagePaneDisplayWidget(), true);
         // persistence and restoreTab wants to know if we are the magic first tab
         aTab.firstTab = true;
-        // Inherit the search mode from a window
-        if (window.opener &&
-            (window.opener.document.documentElement.getAttribute("windowtype") ==
-             "mail:3pane"))
-          windowToInheritFrom = window.opener;
-        else
-          windowToInheritFrom = FindOther3PaneWindow();
-
         aTab.folderDisplay.makeActive();
       },
       /**
        * @param aArgs.folder The nsIMsgFolder to display.
        * @param [aArgs.msgHdr] Optional message header to display.
        * @param [aArgs.folderPaneVisible] Whether the folder pane should be
        *            visible. If this isn't specified, the current or first tab's
        *            current state is used.