Closed Bug 1649710 Opened 5 years ago Closed 5 years ago

Fix EnvironmentFront

Categories

(DevTools :: Framework, defect, P1)

defect

Tracking

(firefox80 fixed)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

The constructor still has the signature of old fronts (I think?), expecting a client and a form.
But protocol.js calls it with a client, a targetFront and a parentFront, which means what it think is a form is in fact a target front.
It was somehow working because the targetFront has an actor method, but the work on Bug 1623283 revealed the issue.

This front should be fixed to behave like the other fronts, and the test that directly instantiate EnvironmentFront (devtools/server/tests/xpcshell/test_framebindings-07.js) needs to be updated.

Blocks: 1623283

The constructor signature was wrong, as protocol.js calls it with a targetFront
instead of the expected "form".
The self-management isn't making much sense, and there's no need for this front
to be different than others.
test_framebindings-07.js, which was directly instantiating EnvironmentFronts is
modified to not do this anymore.
This allow us remove the getBindings method from the front, as it was only used
from this test.

Blocks: 1649753
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7220ff5029d0 Fix EnvironmentFront constructor. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 5 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: