Bug 1531367 - use root event for history middle clicks to get the correct URI, r=mak
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 12 Mar 2019 09:22:11 +0000
changeset 521509 e565518151b74eaadbdaf09da5e3c897400bf28d
parent 521508 caa78f1b64987daad530822173a6c1359a260514
child 521510 17b03d65297c1f5e56a6b5c7c12dcd8b44fe31a0
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1531367
milestone67.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 1531367 - use root event for history middle clicks to get the correct URI, r=mak Differential Revision: https://phabricator.services.mozilla.com/D23039
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -678,16 +678,17 @@ HistoryMenu.prototype = {
 
     this.toggleHiddenTabs();
     this.toggleRecentlyClosedTabs();
     this.toggleRecentlyClosedWindows();
     this.toggleTabsFromOtherComputers();
   },
 
   _onCommand: function HM__onCommand(aEvent) {
+    aEvent = getRootEvent(aEvent);
     let placesNode = aEvent.target._placesNode;
     if (placesNode) {
       if (!PrivateBrowsingUtils.isWindowPrivate(window))
         PlacesUIUtils.markPageAsTyped(placesNode.uri);
       openUILink(placesNode.uri, aEvent, {
         ignoreAlt: true,
         triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
       });