Files
firefox/devtools/client/debugger/packages/devtools-components
Nicolas Chevobbe 75e9d7d732 Bug 1582865 - Don't use document/window in tree component. r=yzen.
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
2019-09-27 12:06:20 +00:00
..

Devtools Components

Devtools shared Components

  • Tree - A performant tree