Bug 815246 - GCLI helper buttons shouldn't be available in the remote window; r=paul

This commit is contained in:
Joe Walker 2012-12-13 13:03:47 +00:00
parent e0d809e500
commit 88dbe2ab92

View File

@ -233,6 +233,10 @@ Toolbox.prototype = {
* The iframe to contain the buttons * The iframe to contain the buttons
*/ */
_buildButtons: function TBOX_buildButtons(frame) { _buildButtons: function TBOX_buildButtons(frame) {
if (this.target.isRemote) {
return;
}
let toolbarSpec = CommandUtils.getCommandbarSpec("devtools.toolbox.toolbarSpec"); let toolbarSpec = CommandUtils.getCommandbarSpec("devtools.toolbox.toolbarSpec");
let environment = { chromeDocument: frame.ownerDocument }; let environment = { chromeDocument: frame.ownerDocument };
let requisition = new Requisition(environment); let requisition = new Requisition(environment);