Open Bug 1070630 Opened 10 years ago Updated 2 years ago

"TypeError: tab is undefined" in tabmail.xml with Lightning installed

Categories

(Thunderbird :: Toolbars and Tabs, defect)

defect

Tracking

(Not tracked)

People

(Reporter: aryx, Unassigned)

Details

Daily + Lightning 20140920 on Windows 8.1

With javascript.options.showInConsole set to true, launching Thunderbird with Lightning installed throws:

Error: TypeError: tab is undefined
Source File: chrome://messenger/content/tabmail.xml
Line: 1067

Relevant code:
      <!-- getBrowserForSelectedTab is required as some toolkit functions
           require a getBrowser() function. -->
      <method name="getBrowserForSelectedTab">
        <body><![CDATA[
          if (!this.currentTabInfo)
            this.currentTabInfo = this.tabInfo[0];

          let tab = this.currentTabInfo;

          let browserFunc = tab.mode.getBrowser || tab.mode.tabType.getBrowser;


The code called there references this.tabInfo[0], but debugging it shows that this gets initialized later (in openFirstTab).

So code can't rely on tabmail code being ready. Either we should fix that or show a best practice how to avoid the issue.
This still happens and can be consistently seen in mozmill runs on TB-trunk as that has Lightning installed.
OS: Windows 8.1 → All
Hardware: x86_64 → All
Thunderbird 40.0 + Lightening 4.2b1 + Provider for Google Calendar 1.0.4

Timestamp: 8/13/2015 6:57:51 AM
Error: TypeError: tab is undefined
Source File: chrome://messenger/content/tabmail.xml
Line: 1067
It's still there in Thunderbird 45.6.0 and Lightning 4.7.6:

Timestamp: 06.01.2017 19:10:41
Error: TypeError: tab is undefined
Source File: chrome://messenger/content/tabmail.xml
Line: 1072
Also in mine:

Horodatage : 09/03/2017 18:25:15
Erreur : TypeError: tab is undefined
Fichier source : chrome://messenger/content/tabmail.xml
Ligne : 1072

================================================================
along with: https://bugzilla.mozilla.org/show_bug.cgi?id=1313307


================================================================
Windows Edu x64 10.0.14393 N/A version 14393
Thunderbird     45.8.0
Java            1.8.0_121
Lightning       4.7.8



================================================================
  Paramètres de base de l'application

    Nom: Thunderbird
    Version: 45.8.0
    Agent utilisateur: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
    Dossier de profil: Ouvrir le dossier correspondant

              (Lecteur local)
    Identifiant de compilation de l'application: 20170305125302
    Plugins activés: about:plugins
    Configuration de compilation: about:buildconfig
    Utilisation mémoire: about:memory

  Comptes courrier et groupes
    account1:
      INCOMING: account1, , (imap) webmail.***.fr:993, SSL, passwordCleartext
      OUTGOING: , webmail.***.fr:587, alwaysSTARTTLS, passwordCleartext, true
      OUTGOING: , webmail.***.fr:587, alwaysSTARTTLS, passwordCleartext, false

    account2:
      INCOMING: account2, , (none) Local Folders, plain, passwordCleartext

  Rapports de plantage
    http://crash-stats.mozilla.com/report/index/bp-4cfc9506-c994-42b7-a74e-2ace82170220 (20/02/2017)

  Extensions
    About:about Button, 1.1.2.1-signed, true, about-about@codefisher.org
    AddExpandedList, 1.1, true, {beefcf4b-214d-4758-aeaf-96a7d84d7de2}
    Addressbooks Synchronizer, 1.1.5, true, addressbookssync@ggbs.de
    AddressBookTab, 1.5, true, AddressBookTab@dischert.luc
    Auto Compress File, 0.5.8, true, AutoCompressFile@gmail.com
    CategoryManager 2, 2.04, true, sendtocategory@jobisoft.de
    Chromatasks, 1.5, true, {25cf5f06-b211-4df3-9d5a-c0ab253a5561}
    Contact Tabs, 2.5, true, contacttabs@janek.org
    Dictionary Switcher, 1.1.5, true, dictionary-switcher-tb@design-noir.de
    DictionarySearch, 45.0.0, true, {a0faa0a4-f1a7-4098-9a74-21efc3a92372}
    Display Mail User Agent, 1.7.0, true, {F8147CF4-B9E3-445B-AA87-081ED66548F8}
    Display Quota, 0.3.7, true, {c1ac4523-76c2-9995-adbd-d93bf5141bea}
    DKIM Verifier, 1.6.4, true, dkim_verifier@pl
    DSN Settings 2, 1.0.3, true, dsn-settings@trustedbird.org_2
    Duplicate Contact Manager, 0.9.2, true, {b4447f60-db9c-11da-a94d-0800200c9a66}
    Extra Folder Columns, 1.1.4, true, extra-cols@jminta_gmail.com
    FiltaQuilla, 1.3.2, true, filtaquilla@mesquilla.com
    Forward, 0.19, true, forward@mozdev.org
    Fournisseur pour Google Agenda, 3.1, true, {a62ef8ec-5fdc-40c2-873c-223b8a6925cc}
    Free Memory Button, 1.1.2.1-signed, true, tb-free-memory-single@codefisher.org
    gContactSync, 2.0.11, true, gContactSync@pirules.net
    Google Tasks Sync, 0.5.3, true, google_tasks_sync@tomasz.lewoc
    hubiC for Filelink, 0.3.2, true, thunderbird-filelink-hubic@vincent.sh
    Imap-ACL-Extension, 0.2.7, true, imap-acl@sirphreak.com
    ImportExportTools, 3.2.4.1, true, {3ed8cc52-86fc-4613-9026-c1ef969da4c3}
    Inverse SOGo Connector, 31.0.3, true, sogo-connector@inverse.ca
    KeeFox, 1.6.4, true, keefox@chris.tomlinson
    Lightning, 4.7.8, true, {e2fda1a4-762b-4020-b5ad-a41df1933103}
    LocalFolder, 0.8.10, true, localfolder@philoux.eu
    LookOut (fix version), 1.2.18, true, lookout@s3_fix_version
    Mail Merge, 4.6.1, true, mailmerge@example.net
    Mail Redirect, 0.8.8, true, {CC3C233D-6668-41bc-AAEB-F3A1D1D594F5}
    Mailbox Alert, 0.16.4, true, {9c21158b-2c76-4d0a-980a-c51fc9cefaa7}
    MoreFunctionsForAddressBook, 0.7.5, true, {3e17310d-82e8-4a43-bd2f-7c3055bfe589}
    ProfileSwitcher, 1.7.6.1, true, {fa8476cf-a98c-4e08-99b4-65a69cb4b7d4}
    Remove Duplicate Messages, 0.1.14, true, {12345678-1234-1234-1234-123456789abc}
    Report Spam, 1.02, true, report-spam@renater.fr
    Signature Switch, 1.6.15, true, {2ab1b709-ba03-4361-abf9-c50b964ff75d}
    SQLite Manager, 0.8.3.1-signed.1-signed, true, SQLiteManager@mrinalkant.blogspot.com
    Stationery, 0.8.6.2, true, {d0e38b3a-0d60-46bf-bf01-83d4ba041015}
    Table2Clipboard, 1.5.3.1.1-signed.1-signed, true, {9ab67d74-ec41-4cb2-b417-df5d93ba1beb}
    Thunderbird Message Filter Import/Export Enhanced, 1.0.3, true, hdiakos@csd.uoc.gr
    ThunderPlunger, 2.14, true, {bfec0750-aa6f-11db-abbd-0800200c9a66}
    ThunderStats, 1.3.2, true, thunderstats@micz.it
    Trier les dossiers manuellement, 1.1.1, true, tbsortfolders@xulforum.org
    WordReference Translator, 1.6.14, true, {4095283b-2f11-42cf-a805-803c7001ffd9}
    CardBook, 17.7, false, cardbook@vigneau.philippe
    Check and Send, 0.9.27, false, {1B0ADFEC-846C-401D-BA54-7842CBD485D4}
    Display Contact Photo, 1.3.1, false, contactPhoto@leven.ch
    Email signature for Thunderbird - WiseStamp, 3.14.0, false, wisestamp_tb@wisestamp.com
    Enigmail, 1.9.6.1, false, {847b3a00-7ab1-11d4-8f02-006008948af5}
    Envoi différé, 6.1.2, false, sendlater3@kamens.us
    Feedly Synchronizer, 1.1.2, false, FeedlySync@AMArostegui
    MailHops, 3.1.0, false, thunderbird@mailhops.com
    pasteCode, 0.71, false, pastecode@morton
    Purge Events Plus, 0.3.0, false, {2d686c2a-3eeb-4aa1-a8a4-aaf6214c79a6}
    Reply Monitor, 0.6, false, replymanager@lin.han
    Sieve, 0.2.3h, false, sieve@mozdev.org
    Simple Locale Switcher, 0.9.5, false, simplels@nohamelin
    SmartTemplate4, 1.4, false, smarttemplate4@thunderbird.extension
    SortRecipients, 0.2.7, false, sortrecipients@martin.soffner
    Subject Manager, 0.5.0, false, SubjectManager@gmail.com
    Tag Toolbar, 0.8.35, false, {61A64500-335C-418D-8FCB-E072A9ABF3DA}
    ThunderLink, 1.2.1, false, thunderlink@mozilla.org
    ThunderSync, 2.6, false, thundersync@frank.abelbeck
    Too Many Recipients, 1.2.1, false, toomanyrec1@acimul.fr
    tzpush, 1.9.9.9.7, false, tzpush@capeproject.org.uk
    Xpunge, 0.6, false, {786abda0-fd14-d247-bf69-38b2fc18491b}

  Préférences modifiées importantes

    Nom: Valeur

      accessibility.typeaheadfind.flashBar: 0
      browser.cache.disk.capacity: 358400
      browser.cache.disk.filesystem_reported: 1
      browser.cache.disk.smart_size_cached_value: 358400
      browser.cache.disk.smart_size.first_run: false
      browser.cache.disk.smart_size.use_old_max: false
      dom.apps.reset-permissions: true
      extensions.lastAppVersion: 45.8.0
      font.minimum-size.x-western: 12
      font.name.monospace.el: Consolas
      font.name.monospace.x-cyrillic: Consolas
      font.name.monospace.x-unicode: Consolas
      font.name.monospace.x-western: Consolas
      font.name.sans-serif.el: Calibri
      font.name.sans-serif.x-cyrillic: Calibri
      font.name.sans-serif.x-unicode: Calibri
      font.name.sans-serif.x-western: Lucida Sans Unicode
      font.name.serif.el: Cambria
      font.name.serif.x-cyrillic: Cambria
      font.name.serif.x-unicode: Cambria
      font.name.serif.x-western: Cambria
      font.size.fixed.el: 14
      font.size.fixed.x-cyrillic: 14
      font.size.fixed.x-unicode: 14
      font.size.variable.el: 17
      font.size.variable.x-cyrillic: 17
      font.size.variable.x-unicode: 17
      font.size.variable.x-western: 12
      gfx.crash-guard.glcontext.appVersion: 45.6.0
      gfx.crash-guard.glcontext.deviceID: 0x191b
      gfx.crash-guard.glcontext.driverVersion: 20.19.15.4531
      gfx.crash-guard.glcontext.gfx.driver-init.direct3d11-angle: true
      gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle: true
      gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-force-d3d11: false
      gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-force-warp: false
      gfx.crash-guard.glcontext.gfx.driver-init.webgl-angle-try-d3d11: true
      gfx.crash-guard.status.glcontext: 2
      mail.openMessageBehavior.version: 1
      mail.winsearch.enable: true
      mail.winsearch.firstRunDone: true
      mail.winsearch.global_reindex_time: 1472652858
      mailnews.database.global.datastore.id: 53478a7c-f002-4750-975f-453d1c780f8
      mailnews.database.global.views.conversation.columns: {"threadCol":{"visible":true,"ordinal":"1"},"flaggedCol":{"visible":true,"ordinal":"3"},"attachmentCol":{"visible":false…
      mailnews.database.global.views.global.columns: {"threadCol":{"visible":true,"ordinal":"1"},"flaggedCol":{"visible":true,"ordinal":"3"},"attachmentCol":{"visible":false…
      network.cookie.prefsMigrated: true
      network.predictor.cleaned-up: true
      places.database.lastMaintenance: 1488880988
      places.history.expiration.transient_current_max_pages: 104858
      plugin.importedState: true
      print.printer_Microsoft_Print_to_PDF.print_bgcolor: false
      print.printer_Microsoft_Print_to_PDF.print_bgimages: false
      print.printer_Microsoft_Print_to_PDF.print_duplex: -437918235
      print.printer_Microsoft_Print_to_PDF.print_edge_bottom: 0
      print.printer_Microsoft_Print_to_PDF.print_edge_left: 0
      print.printer_Microsoft_Print_to_PDF.print_edge_right: 0
      print.printer_Microsoft_Print_to_PDF.print_edge_top: 0
      print.printer_Microsoft_Print_to_PDF.print_evenpages: true
      print.printer_Microsoft_Print_to_PDF.print_footercenter:
      print.printer_Microsoft_Print_to_PDF.print_footerleft: &PT
      print.printer_Microsoft_Print_to_PDF.print_footerright: &D
      print.printer_Microsoft_Print_to_PDF.print_headercenter:
      print.printer_Microsoft_Print_to_PDF.print_headerleft: &T
      print.printer_Microsoft_Print_to_PDF.print_headerright: &U
      print.printer_Microsoft_Print_to_PDF.print_in_color: true
      print.printer_Microsoft_Print_to_PDF.print_margin_bottom: 0.5
      print.printer_Microsoft_Print_to_PDF.print_margin_left: 0.5
      print.printer_Microsoft_Print_to_PDF.print_margin_right: 0.5
      print.printer_Microsoft_Print_to_PDF.print_margin_top: 0.5
      print.printer_Microsoft_Print_to_PDF.print_oddpages: true
      print.printer_Microsoft_Print_to_PDF.print_orientation: 0
      print.printer_Microsoft_Print_to_PDF.print_page_delay: 50
      print.printer_Microsoft_Print_to_PDF.print_paper_data: 9
      print.printer_Microsoft_Print_to_PDF.print_paper_height: 11,00
      print.printer_Microsoft_Print_to_PDF.print_paper_name:
      print.printer_Microsoft_Print_to_PDF.print_paper_size_type: 0
      print.printer_Microsoft_Print_to_PDF.print_paper_size_unit: 1
      print.printer_Microsoft_Print_to_PDF.print_paper_width: 8,50
      print.printer_Microsoft_Print_to_PDF.print_resolution: -437918235
      print.printer_Microsoft_Print_to_PDF.print_reversed: false
      print.printer_Microsoft_Print_to_PDF.print_scaling: 1,00
      print.printer_Microsoft_Print_to_PDF.print_shrink_to_fit: true
      print.printer_Microsoft_Print_to_PDF.print_to_file: false
      print.printer_Microsoft_Print_to_PDF.print_unwriteable_margin_bottom: 0
      print.printer_Microsoft_Print_to_PDF.print_unwriteable_margin_left: 0
      print.printer_Microsoft_Print_to_PDF.print_unwriteable_margin_right: 0
      print.printer_Microsoft_Print_to_PDF.print_unwriteable_margin_top: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_bgcolor: false
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_bgimages: false
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_duplex: -437918235
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_edge_bottom: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_edge_left: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_edge_right: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_edge_top: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_evenpages: true
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_footercenter:
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_footerleft: &PT
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_footerright: &D
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_headercenter:
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_headerleft: &T
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_headerright: &U
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_in_color: true
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_margin_bottom: 0.5
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_margin_left: 0.5
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_margin_right: 0.5
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_margin_top: 0.5
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_oddpages: true
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_orientation: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_page_delay: 50
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_data: 9
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_height: 11,00
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_name:
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_size_type: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_size_unit: 1
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_paper_width: 8,50
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_resolution: -437918235
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_reversed: false
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_scaling: 1,00
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_shrink_to_fit: true
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_to_file: false
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_unwriteable_margin_bottom: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_unwriteable_margin_left: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_unwriteable_margin_right: 0
      print.printer_TOSHIBA_e-STUDIO4555C-11517988.print_unwriteable_margin_top: 0
      privacy.donottrackheader.enabled: true

  Accélération graphique

      Description de la carte: Intel(R) HD Graphics 530
      ID du vendeur: 0x8086
      ID du périphérique: 0x191b
      RAM de la carte: Unknown
      Pilotes de la carte: igdumdim64 igd10iumd64 igd10iumd64 igd12umd64 igdumdim32 igd10iumd32 igd10iumd32 igd12umd32
      Version du pilote: 20.19.15.4531
      Date du pilote: 9-29-2016
      Description de la carte (GPU 2): NVIDIA Quadro M1000M
      ID du vendeur (GPU 2): 0x10de
      ID du périphérique (GPU 2): 0x13b1
      RAM de la carte (GPU 2): 2048
      Pilote de la carte (GPU 2): C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvd3dumx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2umx C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvd3dum,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2um,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2um,C:\WINDOWS\System32\DriverStore\FileRepository\nvdm.inf_amd64_f1d6e149ce1765cb\nvwgf2um
      Version du pilote (GPU 2): 21.21.13.6942
      Date du pilote (GPU 2): 9-25-2016
      Direct2D activé: false
      DirectWrite activé: false (10.0.14393.351)
      Paramètres ClearType: Paramètres ClearType introuvables
      Rendu WebGL: Google Inc. -- ANGLE (Intel(R) HD Graphics 530 Direct3D11 vs_5_0 ps_5_0) -- OpenGL ES 2.0 (ANGLE 2.1.0.316930d51ea9)
      Fenêtres avec accélération graphique: 0

      AzureCanvasBackend: skia
      AzureSkiaAccelerated: 0
      AzureFallbackCanvasBackend: cairo
      AzureContentBackend: cairo

  JavaScript

  Ramasse-miettes incrémentiel: 1

  Accessibilité

    Activée: 0
    Empêcher l'accessibilité: 0

  Versions des bibliothèques

      Version minimale attendue
      Version utilisée

      NSPR
      4.12
      4.12

      NSS
      3.21.3 Basic ECC
      3.21.3 Basic ECC

      NSS Util
      3.21.3
      3.21.3

      NSS SSL
      3.21.3 Basic ECC
      3.21.3 Basic ECC

      NSS S/MIME
      3.21.3 Basic ECC
      3.21.3 Basic ECC
It's still there in Thunderbird 52.2.0 and Lightning 4.7.8:

Horodatage : 23/06/2017 08:09:18
Erreur : TypeError: tab is undefined
Fichier source : chrome://messenger/content/tabmail.xml
Ligne : 1072
Sorry, this is Thunderbird 45.8.0 not 52.2.0 !
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.