News for hackers. Stuff that matters.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by msoad on Tuesday March 25, 2014 @01:27PM (#7467300)
I'm going to guess that Chrome DevTools is going to fall behind Firefox by end of this year.

Today it's not possible for me to make the switch. There are some features that Firefox devtools is lacking from DevTools.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by cromwellian on Tuesday March 25, 2014 @02:01PM (#7467576)
That seems to be premature. Depends what you consider a DevTool. Chrome still has far better profiling/tracing tools for performance analysis. The latest Chrome versions even let you hover over functions and view what the V8 JIT thought of them (e.g. deoptimized and why). Even relatively low hanging fruit, like debugging WebWorkers is missing from FF. I see tons of missing stuff that Chrome DevTools has that FF is missing. It doesn't have something like the Timeline tab for tracking memory/framerate over time. I don't see stuff like HTML5 FileSystem/IndexDB/localStorage browsing. SourceMap support doesn't match Chrome. Etc.

FF seems to do better with the DOM/Designer portion of tooling, but from a JS-heavy coder perspective it seems behind.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by mnemonik on Tuesday March 25, 2014 @02:45PM (#7467926)
Like we aren't working on all those things ;)
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by cromwellian on Tuesday March 25, 2014 @02:58PM (#7468044)
Sometimes I wonder if Chrome and Mozilla could standardize on some DevTool APIs, like JVMs standardized on JVMTI/JPDA, so that a portion of the code could be shared and people could build JS dev-tooling that would work with either browser.

Obviously, there's lots of stuff that is tied to internals, especially when it comes to profiling and native code bindings, but it seems like something could be done.

A good start would be for JS VMs to adopt a standard debugger protocol so that attaching a tool to the JS debugger would be browser independent.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by skybrian on Tuesday March 25, 2014 @06:28PM (#7469693)
As a GWT maintainer I would be overjoyed if Firefox would simply match Chrome as a solid, fast JavaScript debugger that supports sourcemaps well for large apps. The announced bells and whistles aren't going to help my users if they can't even debug their code.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by msoad on Tuesday March 25, 2014 @01:38PM (#7467389)
Here are some features I'm missing:

    Break on attribute or subtree modification
    HTML Node drag and drop (yup! Chrome DevTools have it)
    XPath (I use it for testing)
    FPS monitor and force repaint
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by bgrins on Tuesday March 25, 2014 @01:42PM (#7467426)
Thanks for the info. What are you wanting to do with xpath? The console supports the $x function, like $x("//body"). Also, HTML node drag and drop is on the radar here: https://bugzilla.mozilla.org/show_bug.cgi?id=858038
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by msoad on Tuesday March 25, 2014 @01:52PM (#7467503)
I want to get XPath from a node. I use it in WebDriverJS.

Good to see drag and drop coming.

There was some features that I loved. It's not fair to not mention those:

    CSS autocomplete is much better than Chrome’s
    Code Editor’s Search is just amazing!
    The filter for computed CSS properties is very handy for my work
    Black Theme is great! Please make it easy to write custom themes

One little request, in console. ⌘+K should clean the console.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by bgrins on Tuesday March 25, 2014 @02:09PM (#7467644)
I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=987877 for adding a Copy XPath menu item in the inspector
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by skybrian on Tuesday March 25, 2014 @06:16PM (#7469582)
A long time ago I wrote a Firefox plugin to get an XPath:

https://addons.mozilla.org/en-US/firefox/addon/xpath-checker...

It's open source, so perhaps you could reuse the code from WebDriver:

https://code.google.com/p/xpathchecker/

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by mihai_sucan on Tuesday March 25, 2014 @02:02PM (#7467595)
We have Ctrl-L for clear output.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by sim0n on Tuesday March 25, 2014 @03:15PM (#7468204)
⌘+K is consistent across other apps on OS X (e.g. Terminal)
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by ptx on Tuesday March 25, 2014 @06:03PM (#7469462)
But ^L is also consistent with Terminal, across all platforms, at least in bash and other programs that use readline. :)
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by mihai_sucan on Tuesday March 25, 2014 @03:19PM (#7468235)
We've had long discussions and arguing over cmd-k, ctrl-L, and all the shortcuts we could use. cmd-k takes over the search field focus.

This is a bitter pill: any shortcut we choose is a different kind of 'wrong'.

Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by nwienert on Tuesday March 25, 2014 @03:49PM (#7468451)
I'd throw in a vote for cmd+k to clear
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by nawitus on Tuesday March 25, 2014 @02:07PM (#7467615)
I'm missing localStorage inspecting and editing. (If it's already there, please tell where :), I haven't really used Firefox developer tools much).
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by bgrins on Tuesday March 25, 2014 @02:23PM (#7467746)
A storage inspector is not part of the tools yet. Some of the functionality for this has landed, but the frontend is still being worked on here: https://bugzilla.mozilla.org/show_bug.cgi?id=970517.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by proexploit on Tuesday March 25, 2014 @02:17PM (#7467701)
In the console you can type: inspect(localStorage)
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by nawitus on Tuesday March 25, 2014 @03:25PM (#7468281)
Thanks, but that's not usable enough for me.
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by Dirlewanger on Tuesday March 25, 2014 @03:55PM (#7468487)
You mean catch up to where DevTools are right now, by the end of the year? Firefox's tools have been behind Chrome's for years, I really don't see how Chrome's will "fall behind". You know Chrome has people working on it too, right?
Re:Firefox Dev Tools: Box model highlighter, Web Console imp... by msoad on Tuesday March 25, 2014 @05:17PM (#7469024)
Have you ever opened a bug for Chrome DevTools? I opened one for filtering computed CSS properties a year ago. It's not even triaged yet!