Bug 1093566 - Add Cc, Ci, Cu, Cr to scope of spawned ContentTasks; r=Gijs r=paolo
authorSteven MacLeod <smacleod@mozilla.com>
Thu, 26 Feb 2015 11:49:36 -0500
changeset 231327 ec936c510299f0c50b3bd33f18461827ece4b43d
parent 231326 fdbe5abe8675fdcbf32c5c7a8f41a15b9457761c
child 231328 be473722fb842a5de1e66fdcd376736df4aff7c9
push id28349
push userkwierso@gmail.com
push dateMon, 02 Mar 2015 20:41:54 +0000
treeherdermozilla-central@eaaa45f32e9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, paolo
bugs1093566
milestone39.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 1093566 - Add Cc, Ci, Cu, Cr to scope of spawned ContentTasks; r=Gijs r=paolo
testing/mochitest/BrowserTestUtils/content/content-task.js
--- a/testing/mochitest/BrowserTestUtils/content/content-task.js
+++ b/testing/mochitest/BrowserTestUtils/content/content-task.js
@@ -1,15 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-let Cu = Components.utils;
+const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
+
 Cu.import("resource://gre/modules/Task.jsm", this);
 
 addMessageListener("content-task:spawn", function (msg) {
   let id = msg.data.id;
   let source = msg.data.runnable || "()=>{}";
 
   try {
     let runnablestr = `