Bug 797134 - Right-clicking on the Social API ambient notification buttons opens the panel and context menu. r=jaws

This commit is contained in:
Shane Caraveo 2012-10-03 13:57:13 -07:00
parent e5802af749
commit b4654e0b10

View File

@ -617,7 +617,10 @@ var SocialToolbar = {
let box = document.createElement("box");
box.classList.add("toolbarbutton-1");
box.setAttribute("id", iconId);
box.addEventListener("mousedown", function (e) { SocialToolbar.showAmbientPopup(box); }, false);
box.addEventListener("mousedown", function (e) {
if (e.button == 0)
SocialToolbar.showAmbientPopup(box);
}, false);
box.setAttribute("notificationFrameId", notificationFrameId);
stack = document.createElement("stack");
stack.setAttribute("id", stackId);