Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Update #2 on unshipping the GCLI (AKA Developer Toolbar)

25 views
Skip to first unread message

Soledad Penadés

unread,
Jul 6, 2018, 10:38:34 AM7/6/18
to firef...@mozilla.org, dev-developer-tools
Hello all!

Long time, no update. Apologies! I'll keep it short:

The screenshot command has been re-implemented and is now accessible on
Nightly, via the Web Console.

Where you'd open the GCLI and type `screenshot`, you would now head to
the Web Console (⌥⌘J or Alt+CTRL+J), and type `:screenshot`.

You can use the same options as before; try entering `:screenshot
--help` for the full list.

While it's exciting to have `screenshot` back, wait... you can also get
screenshots of remote targets now! Yes, that's right.

If you're connected to a remote target, you can request a screenshot by
typing `:screenshot` on the Web Console in the toolbox which is attached
to said target. Debugging Firefox in Android? You can get screenshots
remotely now. The only detail is you'll need to use a version of Nightly
on Android which is built on the 4th of May or onwards, as there were
server changes required to make this happen.

The next step, screenshots wise, is to refactor the code in the
screenshot button to not use the GCLI screenshot code.

I've documented these updates and more on this page:
https://docs.google.com/document/d/e/2PACX-1vSh02ilZT6BwMnYJ2XC_DrrN7GoIWktNAFlYLvGlTMyM7KFelrB6DBWBQEsgHIIiOCH561TWcTBevBk/pub


Thanks to all the people who made this possible, specially Yulia, Alex
and Nicholas! :-)


Please take lots of screenshots, and file plenty of bugs (if you find them):

https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Console


Thank you!

sole


PS For the completionists out there, in previous episodes:

* Update 1:
https://groups.google.com/d/msg/mozilla.dev.developer-tools/zecjxMcVQG0/3byrv405AgAJ
* Intent to unship:
https://mail.mozilla.org/pipermail/firefox-dev/2018-March/006249.html

--
http://soledadpenades.com

Brian Grinstead

unread,
Jul 6, 2018, 1:53:09 PM7/6/18
to so...@mozilla.com, dev-developer-tools, firef...@mozilla.org
Also, if you run `:screenshot` from the Browser Console or Browser Toolbox it will take a screenshot of the entire window, including chrome.

Brian
> _______________________________________________
> dev-developer-tools mailing list
> dev-devel...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-developer-tools

stripTM

unread,
Jul 6, 2018, 2:39:37 PM7/6/18
to Brian Grinstead, dev-developer-tools, so...@mozilla.com, firef...@mozilla.org
One question for Browser Toolbox screenshots.

Being in isolated processes, the capture of Chrome does not include the
page.
Is this a known thing?
--
-=stripTM=-
http://mozilla-hispano.org
http://twitter.com/striptm

Brian Grinstead

unread,
Jul 6, 2018, 2:48:08 PM7/6/18
to stripTM, dev-developer-tools, so...@mozilla.com, firef...@mozilla.org
You are right - if the page is loaded in the parent process then the page content shows up in the screenshot but otherwise it doesn’t. I guess this issue will become possible in normal pages with fission, so it'd be worth looking into the canvas drawWindow API to see if it’s possible to capture remote browser content.

Brian

J. Ryan Stinnett

unread,
Jul 6, 2018, 3:32:18 PM7/6/18
to Brian Grinstead, Soledad Penadés, stripTM, dev-developer-tools, Firefox Dev
Screenshots that include content of multiple processes is planned work for
the Graphics team as part of Fission, so I assume we'll get a solution for
this one way or another.

- Ryan

On Fri, Jul 6, 2018 at 1:48 PM Brian Grinstead <bgrin...@mozilla.com>
wrote:
> _______________________________________________
> firefox-dev mailing list
> firef...@mozilla.org
> https://mail.mozilla.org/listinfo/firefox-dev
>

Sebastian Zartner

unread,
Jul 6, 2018, 5:13:32 PM7/6/18
to J. Ryan Stinnett, Brian Grinstead, dev-developer-tools, stripTM, Soledad Penadés, Firefox Dev
Great to see the `screenshot` command being revived! And even more so
that it now also works to take screenshots of the window chrome from
within the Browser Toolbox's console and of remove devices!

Though there's one important regression in regard of UX ‒
autocompletion. Without autocompletion it's quite hard to use the
command, because you have to remember or look up the syntax and
options everytime. Therefore I've filed https://bugzil.la/1474012.

Also, it's unclear to me whether you plan to add more commands to the
Web Console in the future, which I think would be a really great
replacement for the GCLI. (And with a good discoverability I'm sure
that more people would actually use those commands.) For what it's
worth, Joe Walker seems to have foreseen a future where the Web
Console takes over the functionality of the GCLI in
https://bugzil.la/789675.

Best regards,

Sebastian
0 new messages