Closed Bug 1583252 Opened 6 years ago Closed 6 years ago

devtools mochitests should always close their DebuggerClient

Categories

(DevTools :: Framework, enhancement, P3)

enhancement

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
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.

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

Priority: -- → P3

This work would actually help me track that I do not leave even more DebuggerClient opened because of bug 1565263's patch.

Assignee: nobody → poirot.alex

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.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d362b8b7a0d Assert that there is no pending client at end of each test. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/655923166066 Shutdown content process DebuggerServer only once the last connection closes. r=jdescottes
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: