Bug 1539295 - fix tab after auto-complete in mailing list add/edit. r=aceman a=jorgk
authorJorg K <jorgk@jorgk.com>
Wed, 27 Mar 2019 23:34:08 +0100
changeset 32192 6fba52b75d2ec7bd5ac0f349be5d866ba9f5b9bd
parent 32191 531b287058d3307aeb92a80051badbac99a50f63
child 32193 43f5186b8b6e27f1b85779871ea97923fadf617a
push id188
push usermozilla@jorgk.com
push dateTue, 30 Apr 2019 18:38:30 +0000
treeherdercomm-esr60@43f5186b8b6e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman, jorgk
bugs1539295
Bug 1539295 - fix tab after auto-complete in mailing list add/edit. r=aceman a=jorgk
mail/components/addrbook/content/abEditListDialog.xul
mail/components/addrbook/content/abMailListDialog.xul
--- a/mail/components/addrbook/content/abEditListDialog.xul
+++ b/mail/components/addrbook/content/abEditListDialog.xul
@@ -58,17 +58,17 @@
         <hbox class="addressingWidgetCell" flex="1">
           <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
                    type="autocomplete" flex="1"
                    autocompletesearch="addrbook ldap"
                    autocompletesearchparam="{}" timeout="300" maxrows="4"
                    completedefaultindex="true" forcecomplete="true"
                    completeselectedindex="true"
                    minresultsforpopup="3"
-                   ontextentered="awRecipientTextCommand(param, this); if (this.value != '') param.preventDefault();"
+                   ontextentered="awRecipientTextCommand(param, this); if (param &amp;&amp; this.value != '') param.preventDefault();"
                    onkeydown="awRecipientKeyDown(event, this);"
                    onclick="awNotAnEmptyArea(event);">
             <image onclick="this.parentNode.select();" class="person-icon"/>
           </textbox>
         </hbox>
       </richlistitem>
     </richlistbox>
   </vbox>
--- a/mail/components/addrbook/content/abMailListDialog.xul
+++ b/mail/components/addrbook/content/abMailListDialog.xul
@@ -69,17 +69,17 @@
         <hbox class="addressingWidgetCell" flex="1">
           <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
                    type="autocomplete" flex="1"
                    autocompletesearch="addrbook ldap"
                    autocompletesearchparam="{}" timeout="300" maxrows="4"
                    completedefaultindex="true" forcecomplete="true"
                    completeselectedindex="true"
                    minresultsforpopup="3"
-                   ontextentered="awRecipientTextCommand(param, this); if (this.value != '') param.preventDefault();"
+                   ontextentered="awRecipientTextCommand(param, this); if (param &amp;&amp; this.value != '') param.preventDefault();"
                    onkeydown="awRecipientKeyDown(event, this);"
                    onclick="awNotAnEmptyArea(event);">
             <image onclick="this.parentNode.select();" class="person-icon"/>
           </textbox>
         </hbox>
       </richlistitem>
     </richlistbox>
   </vbox>