Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2012 00:17
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
firefox GCLI bug command
* bugzilla command
* use: bug #id
name: 'bug',
description: 'Shows a Mozilla Bugzilla bug',
params: [
name: 'num',
type: 'number',
description: 'bug id'
exec: function(args, context) {
let gBrowser = context.environment.chromeDocument.defaultView.gBrowser;
let url = "" + args.num;
gBrowser.selectedTab = gBrowser.addTab(url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment