Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. r=enn a=jcristau
authorDão Gottwald <dao@mozilla.com>
Thu, 15 Mar 2018 13:14:50 +0100
changeset 460259 86165d0549cead8e5a3564c6a2cd53a75ea8ca66
parent 460258 15e6ad92c29debadafe8f3d20e8157aedc0f7d82
child 460260 382437b9db024f51e49655de0a61885b35352813
push id8891
push userrgurzau@mozilla.com
push dateWed, 21 Mar 2018 13:06:44 +0000
treeherdermozilla-beta@86165d0549ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenn, jcristau
bugs1443937
milestone60.0
Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. r=enn a=jcristau
toolkit/content/widgets/browser.xml
--- a/toolkit/content/widgets/browser.xml
+++ b/toolkit/content/widgets/browser.xml
@@ -1295,16 +1295,17 @@
         <body>
           <![CDATA[
             const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
             var popup = document.createElementNS(XUL_NS, "panel");
             popup.className = "autoscroller";
             // We set this attribute on the element so that mousemove
             // events can be handled by browser-content.js.
             popup.setAttribute("mousethrough", "always");
+            popup.setAttribute("consumeoutsideclicks", "true");
             popup.setAttribute("rolluponmousewheel", "true");
             popup.setAttribute("hidden", "true");
             return popup;
           ]]>
         </body>
       </method>
 
       <method name="startScroll">