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 231194 ec936c510299f0c50b3bd33f18461827ece4b43d
parent 231193 fdbe5abe8675fdcbf32c5c7a8f41a15b9457761c
child 231195 be473722fb842a5de1e66fdcd376736df4aff7c9
push id11534
push usersmacleod@mozilla.com
push dateFri, 27 Feb 2015 19:29:47 +0000
treeherderfx-team@be473722fb84 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, paolo
bugs1093566
milestone39.0a1
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 = `