From b08075b90485d074b46c7538f1b39d827cff61de Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Thu, 27 Sep 2018 07:49:05 +0000 Subject: [PATCH] Bug 1492702 - Send the contextual link to the device, not the selected tab when a link is right-clicked. r=markh Differential Revision: https://phabricator.services.mozilla.com/D6980 --HG-- extra : moz-landing-system : lando --- browser/base/content/browser-context.inc | 4 +-- browser/base/content/browser-pageActions.js | 6 ++++- browser/base/content/browser-sync.js | 25 +++++++++---------- .../test/sync/browser_contextmenu_sendpage.js | 18 ++++++------- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc index 8a1942ed5df5..77a342df79cc 100644 --- a/browser/base/content/browser-context.inc +++ b/browser/base/content/browser-context.inc @@ -267,7 +267,7 @@ accesskey="&sendPageToDevice.accesskey;" hidden="true"> + onpopupshowing="(() => { gSync.populateSendTabToDevicesMenu(event.target, gBrowser.currentURI.spec, gBrowser.contentTitle, gBrowser.selectedTab.multiselected); })()"/>