Bug 1627200 - Fix autocomplete popup of <input> with <datalist>. r=aleca a=wsmwk
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 11 Jun 2020 22:36:34 +1200
changeset 38517 a2681c24ae667222a519ff18fb3d8a956ebd5d07
parent 38516 1b42af3428cc71f3cf7eb034f117dba99c6662ad
child 38518 4e53e497dc00f7c6843fd0aafc9b207d4ecfb7b9
push id2625
push userthunderbird@calypsoblue.org
push dateFri, 19 Jun 2020 19:52:35 +0000
treeherdercomm-beta@1346aaf4d966 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleca, wsmwk
bugs1627200
Bug 1627200 - Fix autocomplete popup of <input> with <datalist>. r=aleca a=wsmwk
mail/base/content/messenger.xhtml
mail/themes/shared/mail/messenger.css
--- a/mail/base/content/messenger.xhtml
+++ b/mail/base/content/messenger.xhtml
@@ -336,18 +336,19 @@
 
 <!-- The panelUI is for the appmenu. -->
 #include ../../components/customizableui/content/panelUI.inc.xhtml
 
 #include msgHdrPopup.inc.xhtml
   <panel is="glodacomplete-rich-result-popup"
          id="PopupGlodaAutocomplete"
          noautofocus="true"/>
-  <panel type="autocomplete"
-         id="PopupAutoComplete"
+  <panel is="autocomplete-richlistbox-popup" id="PopupAutoComplete"
+         type="autocomplete"
+         role="group"
          noautofocus="true"/>
 
   <tooltip id="attachmentListTooltip"/>
 
   <menupopup id="newsgroupPopup" position="after_start" class="newsgroupPopup"
              onpopupshowing="setupNewsgroupPopup(document.popupNode); goUpdateCommand('cmd_createFilterFromPopup')"
              onpopuphiding="hideEmailNewsPopup(document.popupNode);">
       <menuitem id="newsgroupPlaceHolder"
--- a/mail/themes/shared/mail/messenger.css
+++ b/mail/themes/shared/mail/messenger.css
@@ -519,30 +519,30 @@ toolbarpaletteitem toolbarspring {
 }
 
 /* :::: autocomplete labels :::: */
 
 html|span.ac-emphasize-text {
   font-weight: bold;
 }
 
-.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url,
-.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+.autocomplete-richlistitem[type$="-abook"]:not([ac-comment=""]) > .ac-url,
+.autocomplete-richlistitem[type$="-abook"]:not([ac-comment=""]) > .ac-separator {
   display: -moz-box;
 }
 
-.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url {
+.autocomplete-richlistitem[type$="-abook"]:not([ac-comment=""]) > .ac-url {
   -moz-box-ordinal-group: 1;
 }
 
-.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+.autocomplete-richlistitem[type$="-abook"]:not([ac-comment=""]) > .ac-separator {
   -moz-box-ordinal-group: 2;
 }
 
-.autocomplete-richlistitem:not([ac-comment=""]) > .ac-title {
+.autocomplete-richlistitem[type$="-abook"]:not([ac-comment=""]) > .ac-title {
   -moz-box-ordinal-group: 3;
 }
 
 .ac-url-text {
   max-width: unset !important;
 }
 
 html|input[type="number"] {