Bug 1644487 - Fix tab argument of menu API when in a message display window. r=mkmelin
This commit is contained in:
Родитель
4ea07b3d27
Коммит
13c521fcb8
|
@ -103,11 +103,12 @@ nsContextMenu.prototype = {
|
|||
let menuObject = PageMenuParent.maybeBuild(this.target);
|
||||
this.hasPageMenu = PageMenuParent.addToPopup(menuObject, null, aPopup);
|
||||
|
||||
// The rest of this block sends menu information to WebExtensions.
|
||||
let subject = {
|
||||
menu: aPopup,
|
||||
tab: document.getElementById("tabmail")
|
||||
? document.getElementById("tabmail").currentTabInfo
|
||||
: undefined,
|
||||
: window,
|
||||
isContentSelected: this.isContentSelected,
|
||||
isTextSelected: this.isTextSelected,
|
||||
onTextInput: this.onTextInput,
|
||||
|
|
Загрузка…
Ссылка в новой задаче