Last Comment Bug 671406 - Create a list of commands that could be useful in GCLI embedded in firefox
: Create a list of commands that could be useful in GCLI embedded in firefox
Status: RESOLVED FIXED
:
Product: Firefox
Classification: Client Software
Component: Developer Tools (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Joe Walker [:jwalker] (needinfo me or ping on irc)
:
Mentors:
Depends on:
Blocks: GCLI-SHIP
  Show dependency treegraph
 
Reported: 2011-07-13 13:55 PDT by Joe Walker [:jwalker] (needinfo me or ping on irc)
Modified: 2011-10-10 04:03 PDT (History)
3 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) 2011-07-13 13:55:37 PDT

    
Comment 1 Rob Campbell [:rc] (:robcee) 2011-07-18 11:20:03 PDT
not sure where you're gathering these, but I have a few to add to that list:

highlight "querySelector"

for selected nodes (not sure what the syntax is for a "subject verb" type of command)

with a selected node in the highlighter:

addStyle "style attribute contents" // camelCase? add-style?

add/remove attribute "value"

add/remove class "name"

inspect node // open object inspector on highlit node, maybe command should be "introspect"?


many others!
Comment 2 Cedric Vivier [:cedricv] 2011-07-18 11:43:04 PDT
I guess that's a bit early for that, but I'd love:

breakpoint universe.js:42

and the likes. Oh the beauty.
Comment 3 Joe Walker [:jwalker] (needinfo me or ping on irc) 2011-08-26 06:39:05 PDT
When creating this list we must ensure that all of the jstermhelpers are included:

$ = getElementById(...)     // ID
$$ = querySelectorAll(...)  // CSS Selector
$x = document.evaluate(...) // XPath
clear = console.clear
keys = Object.keys(...)
values = 
help = window.open('https://developer.mozilla.org/AppLinks/WebConsoleHelp')
$0 = Inspected Object
inspect = open object inspector
pprint = console.log++ ?
print = console.log ?
Comment 4 Joe Walker [:jwalker] (needinfo me or ping on irc) 2011-10-10 04:02:57 PDT
The initial list of commands is those that depend on bug 689605. (See also bug 693269)

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