Closed Bug 1591961 Opened 5 years ago Closed 5 years ago

Remove unused DebuggerClient.requester API

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: jdescottes, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

With the removal of LongStringClient (Bug 1591330) and the deprecated ThreadClient (Bug 1591410), all the old style clients using DebuggerClient.requester have been removed.

We can remove this API defined at https://searchfox.org/mozilla-central/rev/74cc0f4dce444fe0757e2a6b8307d19e4d0e0212/devtools/shared/client/debugger-client.js#98 and check if we can remove any other dependency.

This actually remove de main usage of DebuggerClient.request. It is still being used in a couple of other places:
https://searchfox.org/mozilla-central/search?q=.request(&case=false&regexp=false&path=devtools%2F
The most problematic callsite is the following:
https://searchfox.org/mozilla-central/rev/652014ca1183c56bc5f04daf01af180d4e50a91c/devtools/shared/fronts/memory.js#82
Where the memory panel uses a Bulk Request. And protocol.js doesn't support bulk requests.
Getting rid of that one callsite would require some tweaks in order to support them in protocol.js... (bug 949595)

It is a bit unfortunate as all other usages of DebuggerClient.request can be removed and this holds from removing a significant part of DebuggerClient code.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Blocks: 1598360

It looks like there is only networkEventUpdate which isn't 100% correctly typed.
It appears in specs, but one test (test_network_security-hpkp.html) is still failing if we remove it.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4a5ae6a2da6 Remove now unused DebuggerClient.requester. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/bf72bae6506a Remove correctly types unsollicited packets. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/8117461d135f Use short syntax for functions of DebuggerClient. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: