Open
Bug 927104
Opened 12 years ago
Updated 3 years ago
"tools reload" leaves remote connections running
Categories
(DevTools :: Framework, defect)
DevTools
Framework
Tracking
(Not tracked)
NEW
People
(Reporter: jryans, Unassigned)
Details
We should close remote debugger connections as part of "tools reload" so that the remote side does not remain open. For example:
1. Enable devtools.debugger.log in desktop Firefox
2. Use the App Manager to connect to a device
3. tools reload
4. Refresh the App Manager and reconnect to device
5. Start an app
6. You will see multiple "appOpen" messages, one for each connection
Comment 1•11 years ago
|
||
Is it because we use debugger.closeListener(true) instead of debugger.destroy() ?
Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #1)
> Is it because we use debugger.closeListener(true) instead of
> debugger.destroy() ?
Well, actually neither of those methods are called directly... "tools reload" just calls reload() on the loader instance, which tells the SDK loader to "unload":
https://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/Loader.jsm#319
Maybe we need to ensure that things like debugger.destroy() are called before this "unload" happens...? It's possible other clean up activities are being missed in a similar way.
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•