Bug 682357 - Don't broadcast context menu commands to all browsers [r=wjohnston]

This commit is contained in:
Mark Finkle 2011-08-26 17:23:36 -04:00
parent 5016973f7f
commit 6a7bdc7df2

View File

@ -22,7 +22,7 @@ var ContextCommands = {
let x = ContextHelper.popupState.x;
let y = ContextHelper.popupState.y;
let json = {x: x, y: y, command: "paste" };
messageManager.sendAsyncMessage("Browser:ContextCommand", json);
target.messageManager.sendAsyncMessage("Browser:ContextCommand", json);
} else {
target.editor.paste(Ci.nsIClipboard.kGlobalClipboard);
target.focus();
@ -42,7 +42,7 @@ var ContextCommands = {
let x = ContextHelper.popupState.x;
let y = ContextHelper.popupState.y;
let json = {x: x, y: y, command: "select-all" };
messageManager.sendAsyncMessage("Browser:ContextCommand", json);
target.messageManager.sendAsyncMessage("Browser:ContextCommand", json);
} else {
target.editor.selectAll();
target.focus();