Bug 1368384 - Close the page action menu when sending tab. r?markh draft
authorEdouard Oger <eoger@fastmail.com>
Wed, 31 May 2017 14:44:01 -0400
changeset 587200 76d6e96bfe53d6376fb1ca9053b837e40febe496
parent 586973 7b8937970f9ca85db88cb2496f2112175fd847c8
child 631225 507658304051607a783f45548dbddc1c3d2a532f
push id61659
push userbmo:eoger@fastmail.com
push dateWed, 31 May 2017 18:44:19 +0000
reviewersmarkh
bugs1368384
milestone55.0a1
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);