Closed Bug 1214328 Opened 9 years ago Closed 7 years ago

Create a DOM Node preview widget

Categories

(DevTools :: General, defect)

43 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jsantell, Unassigned)

References

(Blocks 1 open bug)

Details

Mentioned by Patrick in the widget unity thread[0], we have many uses of DOM node previews. We should investigate and see if an implementation can exist that solves all these use cases and is shareable. Used in: markup view, webconsole, variables view, animation inspector [0] https://groups.google.com/d/msg/mozilla.dev.developer-tools/hH_VBUx_rZA/nCzu2TfCBwAJ
I believe this implementation should be AnimationTargetNode here: https://dxr.mozilla.org/mozilla-central/source/devtools/client/animationinspector/components.js#48 It's the last preview that I implemented and I did in a way to should make sharing easy. I believe we should just rename it and move it to a shared location. The only thing we need to figure out is what we do with the highlighter/selector icon that's displayed next to it. See bug 1211810 for info.
We now have reps here: https://github.com/devtools-html/reps This is what we should use to represent DOM nodes.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.