зеркало из https://github.com/mozilla/gecko-dev.git
Bug 815246 - GCLI helper buttons shouldn't be available in the remote window; r=paul
This commit is contained in:
Родитель
d315eb3a74
Коммит
e733fd405b
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче