Bug 1093349 - Add prettyPrinting and blackBoxing traits and hide buttons in debugger conditionally. r=past, a=me

This commit is contained in:
James Long
2014-11-05 10:16:00 -05:00
parent 5f253ee8db
commit 46f58d16b2
5 changed files with 69 additions and 1 deletions

View File

@@ -215,6 +215,8 @@ let DebuggerController = {
yield this._startTracingTab(traceActor);
}
}
this._hideUnsupportedFeatures();
}),
/**
@@ -231,6 +233,16 @@ let DebuggerController = {
this.activeThread = null;
},
_hideUnsupportedFeatures: function() {
if (this.client.mainRoot.traits.noPrettyPrinting) {
DebuggerView.Sources.hidePrettyPrinting();
}
if (this.client.mainRoot.traits.noBlackBoxing) {
DebuggerView.Sources.hideBlackBoxing();
}
},
/**
* Called for each location change in the debugged tab.
*