Bug 1600398 - middle click on 'view previous tabs' list shouldn't activate autoscroll r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D55335

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexander Surkov 2019-11-30 23:02:04 +00:00
parent 623854adf0
commit ab1b33c97a

View File

@ -50,8 +50,10 @@ class AutoScrollController {
if (
node instanceof content.XULElement &&
mmScrollbarPosition &&
(node.localName == "scrollbar" || node.localName == "scrollcorner")
((mmScrollbarPosition &&
(node.localName == "scrollbar" ||
node.localName == "scrollcorner")) ||
node.localName == "treechildren")
) {
return true;
}