Closed Bug 1649753 Opened 4 years ago Closed 4 years ago

Check if EnvironmentFront is ever used

Categories

(DevTools :: Framework, task)

task

Tracking

(firefox80 fixed)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

As Julian mentionned in phabricator :

I am wondering if we are using the front at all?

1/ We never instantiate it https://searchfox.org/mozilla-central/search?path=&q=new%20EnvironmentFront (apart from the test you modified)
2/ In the specs it is only referenced as the return value of ObjectActor::scope, which I think is only called from ObjectFront::getScope, which is only used in one test: https://searchfox.org/mozilla-central/search?q=.getScope%28&case=true&path=devtools
3/ frame.getEnvironment expects a json answer, therefore protocol.js never creates an Environment front.

We should check if the EnvironmentFront is used, and if not, remove it.

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b7609cb96908
Remove unused EnvironmentFront. r=jdescottes,devtools-backward-compat-reviewers.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: