mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Bug 682357 - Don't broadcast context menu commands to all browsers [r=wjohnston]
This commit is contained in:
parent
5016973f7f
commit
6a7bdc7df2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user