bug 1269421 - enable HTML tooltips in extension popups, r?aswan draft 1269421-popup-tooltip
authorTomislav Jovanovic <tomica@gmail.com>
Thu, 22 Sep 2016 03:22:15 +0200
changeset 416397 03b5d29d98f6255d42e8324f91e9a289bb6c2f7b
parent 415495 62f79d676e0e11b3ad59a5425b3ebb3ec5bbefb5
child 531843 afd4fd1a06f9cc215f905b43f80e5092db7ece8d
push id30130
push userbmo:tomica@gmail.com
push dateThu, 22 Sep 2016 01:27:14 +0000
reviewersaswan
bugs1269421
milestone52.0a1
bug 1269421 - enable HTML tooltips in extension popups, r?aswan MozReview-Commit-ID: 6pyJKgKGW5F
browser/components/extensions/ext-utils.js
--- a/browser/components/extensions/ext-utils.js
+++ b/browser/components/extensions/ext-utils.js
@@ -240,16 +240,17 @@ class BasePopup {
   createBrowser(viewNode, popupURL = null) {
     let document = viewNode.ownerDocument;
     this.browser = document.createElementNS(XUL_NS, "browser");
     this.browser.setAttribute("type", "content");
     this.browser.setAttribute("disableglobalhistory", "true");
     this.browser.setAttribute("transparent", "true");
     this.browser.setAttribute("class", "webextension-popup-browser");
     this.browser.setAttribute("webextension-view-type", "popup");
+    this.browser.setAttribute("tooltip", "aHTMLTooltip");
 
     // We only need flex sizing for the sake of the slide-in sub-views of the
     // main menu panel, so that the browser occupies the full width of the view,
     // and also takes up any extra height that's available to it.
     this.browser.setAttribute("flex", "1");
 
     // Note: When using noautohide panels, the popup manager will add width and
     // height attributes to the panel, breaking our resize code, if the browser