Bug 1368384 - Close the page action menu when sending tab. r?markh
MozReview-Commit-ID: 6qp1Wbtil7K
--- 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);