Create a gist now

Instantly share code, notes, and snippets.

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