Bug 1014141 - Fix a regression in the remote debugger. r=marco, r=past, a=lmandel
authorEddy Bruel <ejpbruel@mozilla.com>
Wed, 18 Jun 2014 15:26:53 +0200
changeset 208379 006afc4e12202a8892ddeec543c0fdd1eb74197e
parent 208378 c2830085b9e92c09ed2d53dae1f8449bb6cb8b83
child 208380 6a25264574f93c4db5e539a7c178b2a970c719f9
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarco, past, lmandel
bugs1014141
milestone32.0a2
Bug 1014141 - Fix a regression in the remote debugger. r=marco, r=past, a=lmandel
toolkit/devtools/server/actors/webbrowser.js
webapprt/content/dbg-webapp-actors.js
--- a/toolkit/devtools/server/actors/webbrowser.js
+++ b/toolkit/devtools/server/actors/webbrowser.js
@@ -43,16 +43,18 @@ XPCOMUtils.defineLazyGetter(this, "event
 function allAppShellDOMWindows(aWindowType)
 {
   let e = Services.wm.getEnumerator(aWindowType);
   while (e.hasMoreElements()) {
     yield e.getNext();
   }
 }
 
+exports.allAppShellDOMWindows = allAppShellDOMWindows;
+
 /**
  * Retrieve the window type of the top-level window |aWindow|.
  */
 function appShellDOMWindowType(aWindow) {
   /* This is what nsIWindowMediator's enumerator checks. */
   return aWindow.document.documentElement.getAttribute('windowtype');
 }
 
--- a/webapprt/content/dbg-webapp-actors.js
+++ b/webapprt/content/dbg-webapp-actors.js
@@ -1,15 +1,19 @@
 /* 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';
 
 const { Promise } = Cu.import("resource://gre/modules/Promise.jsm", {});
+const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
+const { BrowserTabActor, BrowserTabList, allAppShellDOMWindows,
+        sendShutdownEvent } = devtools.require("devtools/server/actors/webbrowser");
+const { RootActor } = devtools.require("devtools/server/actors/root");
 
 /**
  * WebappRT-specific actors.
  */
 
 /**
  * Construct a root actor appropriate for use in a server running in the webapp
  * runtime. The returned root actor: