Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout
This commit is contained in:
@@ -21,15 +21,15 @@ exports.items = [
|
||||
tooltipText: l10n.lookupFormat("splitconsoleTooltip2", ["Esc"]),
|
||||
isRemoteSafe: true,
|
||||
state: {
|
||||
isChecked(target) {
|
||||
isChecked: function (target) {
|
||||
let toolbox = gDevTools.getToolbox(target);
|
||||
return !!(toolbox && toolbox.splitConsole);
|
||||
},
|
||||
onChange(target, changeHandler) {
|
||||
onChange: function (target, changeHandler) {
|
||||
// Register handlers for when a change event should be fired
|
||||
// (which resets the checked state of the button).
|
||||
let toolbox = gDevTools.getToolbox(target);
|
||||
let callback = changeHandler.bind(null, "changed", { target });
|
||||
let callback = changeHandler.bind(null, "changed", { target: target });
|
||||
|
||||
if (!toolbox) {
|
||||
return;
|
||||
@@ -41,7 +41,7 @@ exports.items = [
|
||||
});
|
||||
}
|
||||
},
|
||||
exec(args, context) {
|
||||
exec: function (args, context) {
|
||||
let target = context.environment.target;
|
||||
let toolbox = gDevTools.getToolbox(target);
|
||||
|
||||
@@ -63,7 +63,7 @@ exports.items = [
|
||||
runAt: "client",
|
||||
name: "console clear",
|
||||
description: l10n.lookup("consoleclearDesc"),
|
||||
exec(args, context) {
|
||||
exec: function (args, context) {
|
||||
let toolbox = gDevTools.getToolbox(context.environment.target);
|
||||
if (toolbox == null) {
|
||||
return null;
|
||||
@@ -84,7 +84,7 @@ exports.items = [
|
||||
runAt: "client",
|
||||
name: "console close",
|
||||
description: l10n.lookup("consolecloseDesc"),
|
||||
exec(args, context) {
|
||||
exec: function (args, context) {
|
||||
// Don't return a value to GCLI
|
||||
return gDevTools.closeToolbox(context.environment.target).then(() => {});
|
||||
}
|
||||
@@ -94,7 +94,7 @@ exports.items = [
|
||||
runAt: "client",
|
||||
name: "console open",
|
||||
description: l10n.lookup("consoleopenDesc"),
|
||||
exec(args, context) {
|
||||
exec: function (args, context) {
|
||||
const target = context.environment.target;
|
||||
// Don't return a value to GCLI
|
||||
return gDevTools.showToolbox(target, "webconsole").then(() => {});
|
||||
|
||||
Reference in New Issue
Block a user