Bug 1497544 - Use popup.xml#panel instead of popup.xml#tooltip for the IMTooltip after the tooltip binding removal. r=mkmelin
authorRichard Marti <richard.marti@gmail.com>
Fri, 12 Oct 2018 13:17:32 +0200
changeset 33374 883d9d1734ad1c0a7321f1101190160ba45dc1a4
parent 33373 08a107c8c517158fbb1c32f09a1d224505bcda20
child 33375 45a3482554aa4a69ee41e4199aa6bcd7009d4077
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersmkmelin
bugs1497544
Bug 1497544 - Use popup.xml#panel instead of popup.xml#tooltip for the IMTooltip after the tooltip binding removal. r=mkmelin
chat/content/imtooltip.xml
chat/themes/imtooltip.css
--- a/chat/content/imtooltip.xml
+++ b/chat/content/imtooltip.xml
@@ -5,17 +5,17 @@
 
 <!DOCTYPE bindings>
 
 <bindings id="imTooltipBindings"
           xmlns="http://www.mozilla.org/xbl"
           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
           xmlns:xbl="http://www.mozilla.org/xbl">
 
-  <binding id="tooltip" extends="chrome://global/content/bindings/popup.xml#tooltip">
+  <binding id="tooltip" extends="chrome://global/content/bindings/popup.xml#panel">
     <content noautohide="true" orient="vertical">
       <children>
         <xul:label class="tooltip-label" xbl:inherits="xbl:text=label" flex="1"/>
       </children>
       <xul:vbox id="largeTooltip">
         <xul:hbox align="start" crop="end" flex="1">
           <xul:vbox flex="1">
             <xul:stack>
--- a/chat/themes/imtooltip.css
+++ b/chat/themes/imtooltip.css
@@ -1,12 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#imTooltip {
+  -moz-appearance: tooltip;
+}
+
 .displayNameMessageBox {
   margin-left: 4px;
   margin-top: 2px;
 }
 
 .statusTypeIcon[left][status="chat"] {
   list-style-image: url('chrome://chat/skin/chat-left-16.png') !important;
 }