mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
When using the ObjectInspector in an inspector extension sidebar, document is not an HTMLDocument but a Sandbox, which means we don't have access to the same properties than in a document. Since the Tree and the ObjectInspector components do use `document` and `window`, this means some interaction would lead to the sidebar crashing. To prevent this, we retrieve the document and/or the window from a node reference instead. Differential Revision: https://phabricator.services.mozilla.com/D47271
Devtools Components
Devtools shared Components
- Tree - A performant tree