Closed
Bug 1654754
Opened 6 years ago
Closed 5 years ago
Remove usage of actorHasMethod in grid inspector and highlighters-overlay
Categories
(DevTools :: Inspector, task, P3)
DevTools
Inspector
Tracking
(firefox84 fixed)
RESOLVED
FIXED
84 Branch
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
actorHasMethod has too many pitfalls to be reliably used.
if (
isSubgrid &&
(await this.inspector.currentTarget.actorHasMethod(
"domwalker",
"getParentGridNode"
))
) {
if (this._canGetParentGridNode === undefined) {
this._canGetParentGridNode = await this.target.actorHasMethod(
"domwalker",
"getParentGridNode"
);
}
We should update the grid inspector to use traits instead of actorHasMethod.
However, it looks like this check was introduced for backward compatibility and can probably be simply removed. "getParentGridNode" should be defined on all domwalker actors.
Comment 1•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Component: General → Inspector
| Assignee | ||
Updated•5 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•5 years ago
|
||
The backward compatibility code was introduced in FF69 and can be removed.
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b9e70c09985e
[devtools] Remove actorHasMethod usage from grid inspector and highlighters-overlay r=rcaliman
Comment 4•5 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•