Bug 683510 - GCLI needs a 'console' command; r=msucan

This commit is contained in:
Berker Peksag 2012-01-09 15:38:48 +00:00
parent d54917073b
commit 797c2a1ad9
2 changed files with 17 additions and 0 deletions

View File

@ -84,6 +84,18 @@ gcli.addCommand({
});
/**
* 'console close' command
*/
gcli.addCommand({
name: "console close",
description: gcli.lookup("consolecloseDesc"),
exec: function(args, context) {
let tab = HUDService.getHudReferenceById(context.environment.hudId).tab;
HUDService.deactivateHUDForContext(tab);
}
});
/**
* 'inspect' command
*/

View File

@ -55,3 +55,8 @@ inspectNodeDesc=CSS selector
# parameter to the 'inspect' command, displayed when the user asks for help
# on what it does.
inspectNodeManual=A CSS selector for use with Document.querySelector which identifies a single element
# LOCALIZATION NOTE (consolecloseDesc) A very short description of the
# 'console close' command. This string is designed to be shown in a menu
# alongside the command name, which is why it should be as short as possible.
consolecloseDesc=Close the console