Bug 1368384 - Close the page action menu when sending tab. r=markh
authorEdouard Oger <eoger@fastmail.com>
Wed, 31 May 2017 14:44:01 -0400
changeset 409961 9c69d0681cd6eebb84ede09b15f9866b0397cad0
parent 409960 0d9702f4acd2b5e3c6393a6de3e872516c7089de
child 409962 58553590b6f2cab6e98011cad5df539a82edc266
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1368384
milestone55.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 1368384 - Close the page action menu when sending tab. r=markh MozReview-Commit-ID: 6qp1Wbtil7K
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -299,16 +299,17 @@ var gSync = {
     const fragment = document.createDocumentFragment();
 
     const onTargetDeviceCommand = (event) => {
       let clients = event.target.getAttribute("clientId") ?
         [event.target.getAttribute("clientId")] :
         this.remoteClients.map(client => client.id);
 
       clients.forEach(clientId => this.sendTabToDevice(url, clientId, title));
+      gPageActionButton.panel.hidePopup();
     }
 
     function addTargetDevice(clientId, name, clientType) {
       const targetDevice = createDeviceNodeFn(clientId, name, clientType);
       targetDevice.addEventListener("command", onTargetDeviceCommand, true);
       targetDevice.classList.add("sync-menuitem", "sendtab-target");
       targetDevice.setAttribute("clientId", clientId);
       targetDevice.setAttribute("clientType", clientType);