Remove lifetime from DevTools protocol
Categories
(DevTools :: General, task, P3)
Tracking
(firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
We support a notion of lifetime in the protocol, but it's only used once: https://searchfox.org/mozilla-central/source/devtools/shared/specs/styles.js#21
types.addLifetime("walker", "walker");
And I think in order to actually apply to anything, we would need a type to be defined as walker:something
, as shown in the only test that exercizes the feature: https://searchfox.org/mozilla-central/rev/d866b96d74ec2a63f09ee418f048d23f4fd379a2/devtools/shared/protocol/tests/xpcshell/test_protocol_children.js#242
Furthermore, the coverage shows only two hits for the code that handles a detected lifetime in a type:
https://coverage.moz.tools/#revision=latest&path=devtools%2Fshared%2Fprotocol%2Ftypes.js&view=file&line=89
I believe those 2 hits are from the unit-test. (any other real devtools type would show up way more often, the embedding method has 70 000 hits).
We should remove this, it's confusing.
Assignee | ||
Comment 1•5 years ago
|
||
Depends on D95299
The lifetime feature seems unused in DevTools. Removing it should have no impact.
Comment 3•5 years ago
|
||
bugherder |
Description
•