Bug 1446878 - bug 1100103 follow-up: pass the right input element into awDeleteHit. r=jorgk a=jorgk
authoraceman <acelists@atlas.sk>
Sun, 18 Mar 2018 23:58:00 +0100
changeset 30478 3f6164d3285b9737c65a916e8bf8c7ef71f8f4c2
parent 30477 01c6b254c2037c36de2fe15a1cc4bc335f34713e
child 30479 396d93b76dfb37c80d6f72bf3d247febb2239788
child 30481 3568dcc5e0aadf365b87f749641eaeb0106ac609
child 30482 432731be8bf27013438ca59fb932da42c98fd61a
child 30488 179444452c92e2cd2c88ec9863128d074fe314b9
child 30490 bf3cd0656dd9712bf6aa2affedaf84532bd3d8c2
push id2146
push usermozilla@jorgk.com
push dateMon, 19 Mar 2018 08:34:14 +0000
treeherdercomm-beta@3f6164d3285b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, jorgk
bugs1446878, 1100103
Bug 1446878 - bug 1100103 follow-up: pass the right input element into awDeleteHit. r=jorgk a=jorgk
mail/components/compose/content/messengercompose.xul
--- a/mail/components/compose/content/messengercompose.xul
+++ b/mail/components/compose/content/messengercompose.xul
@@ -1171,17 +1171,17 @@
                     <menuitem value="addr_cc" label="&ccAddr.label;"/>
                     <menuitem value="addr_bcc" label="&bccAddr.label;"/>
                     <menuitem value="addr_reply" label="&replyAddr.label;"/>
                     <menuitem value="addr_newsgroups" label="&newsgroupsAddr.label;"/>
                     <menuitem value="addr_followup" label="&followupAddr.label;"/>
                   </menupopup>
                 </menulist>
                 <image class="deleteAddress close-icon"
-                       onclick="awDeleteHit(this);"/>
+                       onclick="awDeleteHit(this.parentNode.nextSibling.querySelector('textbox.textbox-addressingWidget'));"/>
               </listcell>
               <listcell class="addressingWidgetCell">
                 <textbox id="addressCol2#1" class="plain textbox-addressingWidget uri-element"
                          aria-labelledby="addressCol1#1"
                          type="autocomplete" flex="1"
                          autocompletesearch="mydomain addrbook ldap news"
                          autocompletesearchparam="{}"
                          timeout="300"