Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. r=enn
authorDão Gottwald <dao@mozilla.com>
Thu, 15 Mar 2018 13:14:50 +0100
changeset 408292 94cf9a609d44e3fa81b4655c34dc92635cc486b1
parent 408291 6b12a2c571c98f04034ece6f1596fb0c02955656
child 408293 09262ab2b054452911a92561b596f4d896eab36f
push id33631
push usernerli@mozilla.com
push dateThu, 15 Mar 2018 17:35:14 +0000
treeherdermozilla-central@6b1c76b8daf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenn
bugs1443937
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. r=enn
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">