Bug 1316922 - Fix border radius of add-on sdk panels on macOS. r=kmag
authorMarkus Stange <mstange@themasta.com>
Fri, 11 Nov 2016 14:24:53 -0500
changeset 348882 e01242f2d83950e6c3ff423a25ebfefc3fa88cec
parent 348881 e87192b94a973cc15f345caca668a5b33f658df6
child 348883 cd498d1a4490af65635702ff248cae18a87a4320
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1316922
milestone52.0a1
Bug 1316922 - Fix border radius of add-on sdk panels on macOS. r=kmag MozReview-Commit-ID: EyIziH3Ui2T
addon-sdk/source/lib/sdk/panel/utils.js
--- a/addon-sdk/source/lib/sdk/panel/utils.js
+++ b/addon-sdk/source/lib/sdk/panel/utils.js
@@ -250,17 +250,17 @@ function onPanelClick(event) {
 }
 
 function setupPanelFrame(frame) {
   frame.setAttribute("flex", 1);
   frame.setAttribute("transparent", "transparent");
   frame.setAttribute("autocompleteenabled", true);
   frame.setAttribute("tooltip", "aHTMLTooltip");
   if (platform === "darwin") {
-    frame.style.borderRadius = "6px";
+    frame.style.borderRadius = "var(--arrowpanel-border-radius, 3.5px)";
     frame.style.padding = "1px";
   }
 }
 
 function make(document, options) {
   document = document || getMostRecentBrowserWindow().document;
   let panel = document.createElementNS(XUL_NS, "panel");
   panel.setAttribute("type", "arrow");