Bug 1520544 - Expose NodeFilter to DevTools modules r=gl
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Wed, 16 Jan 2019 20:55:23 +0000
changeset 511260 01b4a854bca1e24978a3846a43d87055b260a5af
parent 511259 a7bd4626ee6ed969a0b6efd3777a5f347c79007b
child 511261 2664998ae6e62503cacd55a91cdf701dcad43415
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgl
bugs1520544
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1520544 - Expose NodeFilter to DevTools modules r=gl Differential Revision: https://phabricator.services.mozilla.com/D16721
devtools/shared/builtin-modules.js
--- a/devtools/shared/builtin-modules.js
+++ b/devtools/shared/builtin-modules.js
@@ -19,16 +19,17 @@ const jsmScope = require("resource://dev
 const { Services } = jsmScope;
 // Steal various globals only available in JSM scope (and not Sandbox one)
 const {
   console,
   DOMPoint,
   DOMQuad,
   DOMRect,
   HeapSnapshot,
+  NodeFilter,
   StructuredCloneHolder,
   TelemetryStopwatch,
 } = Cu.getGlobalForObject(jsmScope);
 
 // Create a single Sandbox to access global properties needed in this module.
 // Sandbox are memory expensive, so we should create as little as possible.
 const {
   atob,
@@ -285,16 +286,17 @@ exports.globals = {
   // Bug 1248830 will work out a better plan here for our content module
   // loading needs, especially as we head towards devtools.html.
   define(factory) {
     factory(this.require, this.exports, this.module);
   },
   DOMParser,
   DOMPoint,
   DOMQuad,
+  NodeFilter,
   DOMRect,
   Element,
   Event,
   FileReader,
   FormData,
   isWorker: false,
   loader: {
     lazyGetter: defineLazyGetter,