devtools mochitests should always close their DebuggerClient
Categories
(DevTools :: Framework, enhancement, P3)
Tracking
(firefox71 fixed)
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 3 open bugs)
Details
Attachments
(2 files)
When working on bug 1565263, I realized that DebuggerClient were left opened in many tests.
Adding an explicit assertion highlights that:
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=267925487&revision=cb1787d8176d3aae322a8da926b5a1b97b13e912
I'm wondering if this also relates to bug 1571703?
By automatically closing the clients, we may more easily hide unclosed clients in production code.
So we should probably evaluate the two options we have here:
- automatically closing the clients, versus,
- asserting unclosed clients and fixing each individual test.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
With the previous try run, I got many failures, some weren't relevants.
Let's see with this new one if we mostly have one related to about:debugging, which may indicate we would better fix bug 1571703 and assert rather than closing clients.
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=267926185&revision=8891d590477494a504cdd6fd7866eaf795d81672
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
This work would actually help me track that I do not leave even more DebuggerClient opened because of bug 1565263's patch.
| Assignee | ||
Comment 4•6 years ago
|
||
When multiple DebuggerClients starts debugging the same content process target,
the first one to close will destroy the other one as we destroy the server
and the loader as soon as we receive the debug:content-process-destroy message.
We should destroy them only once the last client closes.
i.e. when the last connection registered in the content process is destroyed.
| Assignee | ||
Comment 5•6 years ago
|
||
Comment 7•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4d362b8b7a0d
https://hg.mozilla.org/mozilla-central/rev/655923166066
Description
•