Error when using alert() in compose window editor
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr78 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr78 | --- | fixed |
People
(Reporter: k-l-p, Assigned: rjl)
Details
Attachments
(2 files)
|
1.61 KB,
application/x-xpinstall
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Steps to reproduce:
manifest.json:
"compose_action": {
"default_title": "Test",
"default_icon": "test.svg"
},
"permissions": [
"compose",
"activeTab",
"tabs"
]
background.js:
async function klickaktion(tab) {
await browser.tabs.executeScript(tab.id, {
file: "hello.js"
})
}
browser.composeAction.onClicked.addListener(klickaktion);
hello.js:
alert("Hello");
Actual results:
No alert displayed, console shows the error:
TypeError: browser.leaveModalState is not a function PromptParent.jsm:171:17
Expected results:
Alert should be displayed without console error entry.
Comment 1•4 years ago
|
||
Confirming, this happens for anything that calls alert in the message composition editor, that it was found by an extension is irrelevant.
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Fixes alert() and related functions when called from the composition
editor. The browser in that case is <editor> which does not support
enterModalState and leaveModalState.
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/936db9e29968
Allow composer prompts to open without enterModalState. r=darktrojan
Comment 4•4 years ago
|
||
Comment on attachment 9203606 [details]
Bug 1679713 - Allow composer prompts to open without enterModalState. r=darktrojan
[Approval Request Comment]
Safe bug fix.
Comment 5•4 years ago
|
||
Comment on attachment 9203606 [details]
Bug 1679713 - Allow composer prompts to open without enterModalState. r=darktrojan
[Triage Comment]
Approved for esr78
| Assignee | ||
Comment 6•4 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.10.2:
https://hg.mozilla.org/releases/comm-esr78/rev/60efe2160ba6
Description
•