Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. draft
authorDão Gottwald <dao@mozilla.com>
Thu, 15 Mar 2018 13:14:50 +0100
changeset 767924 ca994f46ce0d8c63ac3e655b37b4fb980aba8b7c
parent 767919 fcb11e93adf57210167de0b27b15433e9c3f45e4
push id102744
push userdgottwald@mozilla.com
push dateThu, 15 Mar 2018 12:15:30 +0000
bugs1443937
milestone61.0a1
Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. MozReview-Commit-ID: 2CPDMTK7wjV
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">