Bug 1094203 - Enable tools if related actor is available. r=jryans

This commit is contained in:
Alexandre Poirot
2014-11-12 04:57:00 +01:00
parent c6acedfb21
commit 9c99f9824d
8 changed files with 48 additions and 35 deletions

View File

@@ -198,14 +198,14 @@ let DebuggerController = {
}
let target = this._target;
let { client, form: { chromeDebugger, traceActor, addonActor } } = target;
let { client, form: { chromeDebugger, traceActor, actor } } = target;
target.on("close", this._onTabDetached);
target.on("navigate", this._onTabNavigated);
target.on("will-navigate", this._onTabNavigated);
this.client = client;
if (addonActor) {
yield this._startAddonDebugging(addonActor);
if (target.isAddon) {
yield this._startAddonDebugging(actor);
} else if (target.chrome) {
yield this._startChromeDebugging(chromeDebugger);
} else {