Closed
Bug 1534041
Opened 5 years ago
Closed 21 days ago
browser.runtime.sendMessage not called when in listener for events 'pagehide', 'beforeunload' and 'unload'
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rovyko, Unassigned)
Details
Attachments
(1 file)
2.39 KB,
application/x-zip-compressed
|
Details |
According to the MDN documentation a message can be sent to the background script using runtime.sendMessage
.
When attempting to send a message in this way from a sidebar as handler for an 'pagehide', 'beforeunload' or 'unload' event, the message is not sent. If the event is changed to 'click' the message is sent.
I've attached a small web extension that should reproduce this issue.
Updated•4 years ago
|
Component: Extension Compatibility → Untriaged
Product: Firefox → WebExtensions
Updated•2 years ago
|
Severity: minor → S4
Comment 2•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → DOM: Events
Product: WebExtensions → Core
Comment 3•21 days ago
|
||
Verified WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 21 days ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•