Last Comment Bug 767340 - GCLI commands should be easier to execute from JavaScript
: GCLI commands should be easier to execute from JavaScript
Status: RESOLVED FIXED
:
Product: Firefox
Classification: Client Software
Component: Developer Tools: Graphic Commandline and Toolbar (show other bugs)
: unspecified
: All All
: P3 normal with 1 vote (vote)
: Future
Assigned To: Irakli Gozalishvili [:irakli] [:gozala] [@gozala]
:
Mentors:
Depends on: 933727
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-22 05:59 PDT by Joe Walker [:jwalker] (needinfo me or ping on irc)
Modified: 2014-02-28 00:49 PST (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Joe Walker [:jwalker] (needinfo me or ping on irc) 2012-06-22 05:59:37 PDT
We don't want to create a whole scripting language around GCLI, when we've already got JavaScript. But it would be handy to be able to script with both combined. Something like this:

var pages = [ 'http://www.google.com', 'http://www.apple.com' ];

pages.forEach(function(page) {
  gcli('open ' + page);
  gcli('screenshot');
});
Comment 1 Joe Walker [:jwalker] (needinfo me or ping on irc) 2012-12-21 02:51:44 PST
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Comment 2 Irakli Gozalishvili [:irakli] [:gozala] [@gozala] 2013-07-31 17:36:49 PDT
This came out of my and Joe's collaboration today:
https://gist.github.com/Gozala/6126308

I'll wrap it up in a patch sometime soonish

Note You need to log in before you can comment on or make changes to this bug.