Message manager listeners in child.js are registered more than once

NEW
Unassigned

Status

4 years ago
8 months ago

People

(Reporter: Honza, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

DebuggerServer.connectToChild is executed for every browser tab again when a new tab is opened. This also means that child.js is loaded more than once for a tab (a child process).

This causes all the addMessageListener calls to be executed more than once. In the beginning these listeners used to be per-child, but now some of them are global. Registering them more than once is probably not harmful, but it would deserve some clean up.

Honza

Updated

8 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.