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)

65 Branch
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.

Severity: normal → minor
Component: Extension Compatibility → Untriaged
Product: Firefox → WebExtensions
Severity: minor → S4

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

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.

Attachment

General

Creator:
Created:
Updated:
Size: