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

NEW
Unassigned

Status

()

Firefox
Developer Tools: Framework
3 years ago
3 years ago

People

(Reporter: Honza, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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
You need to log in before you can comment on or make changes to this bug.