Bug 1506125 - Fix gesture support broken by bug 1506125. r=dao
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Fri, 09 Nov 2018 14:44:58 +0000
changeset 445373 b1d6491fc47e69c118a630a1367bca40af30632f
parent 445372 e9267d39ec81476831da99bd3b98557877962ca3
child 445374 dfdd63aae0c53fe1ce5b91bccb0262040cbf90b4
push id109730
push userpaolo.mozmail@amadzone.org
push dateFri, 09 Nov 2018 15:30:10 +0000
treeherdermozilla-inbound@b1d6491fc47e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1506125
milestone65.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 1506125 - Fix gesture support broken by bug 1506125. r=dao Differential Revision: https://phabricator.services.mozilla.com/D11478
browser/base/content/browser-gestureSupport.js
--- a/browser/base/content/browser-gestureSupport.js
+++ b/browser/base/content/browser-gestureSupport.js
@@ -721,19 +721,17 @@ var gHistorySwipeAnimation = {
   _completeFadeOut: function HSA__completeFadeOut(aEvent) {
     gHistorySwipeAnimation._removeBoxes();
   },
 
   /**
    * Adds the boxes that contain the arrows used during the swipe animation.
    */
   _addBoxes: function HSA__addBoxes() {
-    let browserStack =
-      document.getAnonymousElementByAttribute(gBrowser.getPanel(),
-                                              "class", "browserStack");
+    let browserStack = gBrowser.getPanel().querySelector(".browserStack");
     this._container = this._createElement("historySwipeAnimationContainer",
                                           "stack");
     browserStack.appendChild(this._container);
 
     this._prevBox = this._createElement("historySwipeAnimationPreviousArrow",
                                         "box");
     this._prevBox.collapsed = true;
     this._prevBox.style.opacity = 0;