mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
Bug 797134 - Right-clicking on the Social API ambient notification buttons opens the panel and context menu. r=jaws
This commit is contained in:
parent
e5802af749
commit
b4654e0b10
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user