Closed
Bug 709460
Opened 14 years ago
Closed 13 years ago
GCLI needs a screenshot command
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 15
People
(Reporter: jwalker, Assigned: vporof)
References
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(1 file, 2 obsolete files)
|
8.53 KB,
patch
|
jwalker
:
review+
|
Details | Diff | Splinter Review |
i.e.
> screenshot foo.png
Saved screenshot of current page to 'downloads/foo.png'
| Reporter | ||
Comment 1•14 years ago
|
||
This needs to take into account bug 664693 comment 10 (and the few comments prior to that).
Would it be possible to also add support for:
* screenshots copied directly to clipboard, rather than saved on disk;
* screenshots of the viewport/entire window; and
* screenshots of a particular area/element.
The last one could encapsulate the second (screenshot --elem body). I'm not sure of the syntax for it, though. Perhaps "screenshot --elem <selector>".
| Reporter | ||
Updated•14 years ago
|
| Reporter | ||
Comment 5•14 years ago
|
||
Basic implementation.
No tests, l10n incomplete, errors in getting default download directory.
Assignee: nobody → jwalker
Status: NEW → ASSIGNED
| Reporter | ||
Updated•14 years ago
|
Target Milestone: Firefox 12 → Firefox 13
| Reporter | ||
Comment 6•14 years ago
|
||
| Reporter | ||
Comment 7•14 years ago
|
||
Basically working.
Just does current window, and only to a file right now. Enhancements welcome.
Attachment #590679 -
Attachment is obsolete: true
| Reporter | ||
Comment 8•14 years ago
|
||
| Reporter | ||
Comment 9•14 years ago
|
||
| Reporter | ||
Updated•14 years ago
|
Target Milestone: Firefox 13 → Firefox 14
| Assignee | ||
Comment 10•14 years ago
|
||
Can I take this?
| Reporter | ||
Comment 11•14 years ago
|
||
(In reply to Victor Porof from comment #10)
> Can I take this?
You're welcome to
| Reporter | ||
Comment 12•14 years ago
|
||
Just checked and that's the latest version.
It works OK, but can only screenshot the visible screen
| Assignee | ||
Comment 15•13 years ago
|
||
Now able to screenshot the entire webpage view bounds or just a single node identified by a css selector.
Attachment #593142 -
Attachment is obsolete: true
Attachment #626805 -
Flags: review?(jwalker)
| Reporter | ||
Comment 16•13 years ago
|
||
Comment on attachment 626805 [details] [diff] [review]
v3
Review of attachment 626805 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
::: browser/devtools/commandline/GcliCommands.jsm
@@ +195,5 @@
> +
> + let source = ioService.newURI(data, "UTF8", null);
> + persist.saveURI(source, null, null, null, null, file);
> +
> + return "Saved to " + filename;
We're planning on adding a green tick-mark to indicate that the command executed correctly, and I'm expecting that the user will know the filename, so I think we can just return here.
In the future, I've been mulling over the idea that we should have an implicit --verbose flag for all commands which we could turn on/off globally or on a case by case basis.
| Reporter | ||
Updated•13 years ago
|
Attachment #626805 -
Flags: review?(jwalker) → review+
| Assignee | ||
Comment 17•13 years ago
|
||
(In reply to Joe Walker from comment #16)
> Comment on attachment 626805 [details] [diff] [review]
> v3
>
> Review of attachment 626805 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Thanks!
>
> ::: browser/devtools/commandline/GcliCommands.jsm
> @@ +195,5 @@
> > +
> > + let source = ioService.newURI(data, "UTF8", null);
> > + persist.saveURI(source, null, null, null, null, file);
> > +
> > + return "Saved to " + filename;
>
> We're planning on adding a green tick-mark to indicate that the command
> executed correctly, and I'm expecting that the user will know the filename,
> so I think we can just return here.
>
I'm not entirely sure that the user will know the filename right from the start. First time I tried a screenshot and didn't enter a fullpath, I almost got confused on whether the image will be saved in my downloads folder, or on my desktop (like os x does).
Maybe we should keep it?
| Reporter | ||
Comment 18•13 years ago
|
||
(In reply to Victor Porof from comment #17)
> ...
> > We're planning on adding a green tick-mark to indicate that the command
> > executed correctly, and I'm expecting that the user will know the filename,
> > so I think we can just return here.
> >
>
> I'm not entirely sure that the user will know the filename right from the
> start. First time I tried a screenshot and didn't enter a fullpath, I almost
> got confused on whether the image will be saved in my downloads folder, or
> on my desktop (like os x does).
>
> Maybe we should keep it?
Ok, you sold me.
Thanks.
| Reporter | ||
Comment 19•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 20•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•