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);
|
let menuObject = PageMenuParent.maybeBuild(this.target);
|
||||||
this.hasPageMenu = PageMenuParent.addToPopup(menuObject, null, aPopup);
|
this.hasPageMenu = PageMenuParent.addToPopup(menuObject, null, aPopup);
|
||||||
|
|
||||||
|
// The rest of this block sends menu information to WebExtensions.
|
||||||
let subject = {
|
let subject = {
|
||||||
menu: aPopup,
|
menu: aPopup,
|
||||||
tab: document.getElementById("tabmail")
|
tab: document.getElementById("tabmail")
|
||||||
? document.getElementById("tabmail").currentTabInfo
|
? document.getElementById("tabmail").currentTabInfo
|
||||||
: undefined,
|
: window,
|
||||||
isContentSelected: this.isContentSelected,
|
isContentSelected: this.isContentSelected,
|
||||||
isTextSelected: this.isTextSelected,
|
isTextSelected: this.isTextSelected,
|
||||||
onTextInput: this.onTextInput,
|
onTextInput: this.onTextInput,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче