Fix EnvironmentFront
Categories
(DevTools :: Framework, defect, P1)
Tracking
(firefox80 fixed)
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.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
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.
Comment 4•5 years ago
|
||
bugherder |
Description
•