Bug 1506597 - Expose DOMPoint and DOMQUAD TO DevTools modules r=gl
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Mon, 12 Nov 2018 16:16:38 +0000
changeset 445907 b202178963600848d8357f73136221db228432a3
parent 445906 039f38a78b19baa65c162531976c67b42c98fcde
child 445908 655b8b4a0e67c347be75b454ce52a046ccc25a40
push id72816
push usermratcliffe@mozilla.com
push dateMon, 12 Nov 2018 16:47:19 +0000
treeherderautoland@b20217896360 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgl
bugs1506597
milestone65.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 1506597 - Expose DOMPoint and DOMQUAD TO DevTools modules r=gl We need these for the flexbox highlighter. Differential Revision: https://phabricator.services.mozilla.com/D11653
devtools/shared/builtin-modules.js
--- a/devtools/shared/builtin-modules.js
+++ b/devtools/shared/builtin-modules.js
@@ -15,16 +15,18 @@
 
 const { Cu, CC, Cc, Ci } = require("chrome");
 const promise = require("resource://gre/modules/Promise.jsm").Promise;
 const jsmScope = require("resource://devtools/shared/Loader.jsm");
 const { Services } = jsmScope;
 // Steal various globals only available in JSM scope (and not Sandbox one)
 const {
   console,
+  DOMPoint,
+  DOMQuad,
   HeapSnapshot,
   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 {
@@ -278,16 +280,18 @@ 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,
   Element,
   Event,
   FormData,
   isWorker: false,
   loader: {
     lazyGetter: defineLazyGetter,
     lazyImporter: defineLazyModuleGetter,
     lazyServiceGetter: defineLazyServiceGetter,