Bug 1175055 - disable Eudora and Outlook import; r=mkmelin, a=rkent
authorJorg K <mozilla@jorgk.com>
Sun, 21 Jun 2015 23:10:00 +0300
changeset 22376 554d52cce7e2451aadf568444ba68ee652089a07
parent 22375 e167a3321887135cb7effdd0503fce5dd89743ad
child 22377 b80e51a7c88a97fe0fd5e2e5bf6350acd44e6f9f
push id1417
push userkent@caspia.com
push dateMon, 22 Jun 2015 21:52:59 +0000
treeherdercomm-beta@b80e51a7c88a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1175055
Bug 1175055 - disable Eudora and Outlook import; r=mkmelin, a=rkent
mail/components/migration/content/migration.xul
mailnews/import/content/importDialog.js
--- a/mail/components/migration/content/migration.xul
+++ b/mail/components/migration/content/migration.xul
@@ -31,27 +31,30 @@
 
     <radiogroup id="importSourceGroup">
 
       <radio id="seamonkey" label="&importFromSeamonkey3.label;"
              accesskey="&importFromSeamonkey3.accesskey;"/>
 
 #ifdef XP_WIN
       <radio id="oexpress"  label="&importFromOExpress.label;"  accesskey="&importFromOExpress.accesskey;"/>
-      <radio id="outlook"   label="&importFromOutlook.label;"   accesskey="&importFromOutlook.accesskey;"/>
+      <radio id="outlook"   label="&importFromOutlook.label;"   accesskey="&importFromOutlook.accesskey;"
+                            tooltiptext="Currently disabled due to bug 1175055" disabled="true"/>
 #endif
 
 #ifdef XP_UNIX
 #ifdef XP_MACOSX
-      <radio id="eudora"    label="&importFromEudora.label;"    accesskey="&importFromEudora.accesskey;"/>
+      <radio id="eudora"    label="&importFromEudora.label;"    accesskey="&importFromEudora.accesskey;"
+                            tooltiptext="Currently disabled due to bug 1175055" disabled="true"/>
 #endif
 #endif
 
 #ifdef XP_WIN
-      <radio id="eudora"    label="&importFromEudora.label;"    accesskey="&importFromEudora.accesskey;"/>
+      <radio id="eudora"    label="&importFromEudora.label;"    accesskey="&importFromEudora.accesskey;"
+                            tooltiptext="Currently disabled due to bug 1175055" disabled="true"/>
 #endif
 
       <radio id="nothing"   label="&importFromNothing.label;"   accesskey="&importFromNothing.accesskey;" hidden="true"/>
     </radiogroup>
   </wizardpage>
 
   <wizardpage id="selectProfile" pageid="selectProfile" label="&selectProfile.title;"
               next="importItems"
--- a/mailnews/import/content/importDialog.js
+++ b/mailnews/import/content/importDialog.js
@@ -127,16 +127,18 @@ function ImportDialogOKButton()
   nextButton.setAttribute("disabled", "true");
   var backButton = document.getElementById("back");
   backButton.setAttribute("disabled", "true");
 
   if ( listbox && listbox.selectedItems && (listbox.selectedItems.length == 1) )
   {
     importType = document.getElementById("importFields").value;
     var index = listbox.selectedItems[0].getAttribute('list-index');
+    if (index == -1)
+      return false;
     if (importType == "feeds")
       var module = "Feeds";
     else
     {
       var module = importService.GetModule(importType, index);
       var name = importService.GetModuleName(importType, index);
     }
     selectedModuleName = name;
@@ -321,16 +323,18 @@ function ContinueImportCallback()
 
 function ImportSelectionChanged()
 {
   let listbox = document.getElementById('moduleList');
   let acctNameBox = document.getElementById('acctName-box');
   if ( listbox && listbox.selectedItems && (listbox.selectedItems.length == 1) )
   {
     let index = listbox.selectedItems[0].getAttribute('list-index');
+    if (index == -1)
+      return;
     acctNameBox.setAttribute('style', 'visibility: hidden;');
     if (importType == 'feeds')
     {
       if (index == 0)
       {
         SetDivText('description', gFeedsBundle.getString('ImportFeedsNewAccount'));
         let defaultName = gFeedsBundle.getString("feeds-accountname");
         document.getElementById( "acctName").value = defaultName;
@@ -379,18 +383,25 @@ function ListModules() {
 }
 
 function AddModuleToList(moduleName, index)
 {
   var body = document.getElementById("moduleList");
 
   var item = document.createElement('listitem');
   item.setAttribute('label', moduleName);
-  item.setAttribute('list-index', index);
 
+  // Temporarily skip Eudora and Outlook Import which are busted (Bug 1175055).
+  if (moduleName == "Eudora" || moduleName == "Outlook") {
+    item.setAttribute('list-index', -1);
+    item.setAttribute('disabled', true);
+    item.setAttribute('tooltiptext', "Currently disabled due to bug 1175055");
+  } else {
+    item.setAttribute('list-index', index);
+  }
   body.appendChild(item);
 }
 
 function ListFeedAccounts() {
   let body = document.getElementById( "moduleList");
   while (body.hasChildNodes())
     body.lastChild.remove();