--headless --screenshot is broken, consistently hangs: Use Web Console :screenshot or Firefox Screenshots source code at --headless
Categories
(Firefox :: Headless, defect)
Tracking
()
People
(Reporter: guest271314, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Steps to reproduce:
firefox --headless --screenshot URL
Actual results:
consistently hangs at Nightly on Linux. For example https://bugzilla.mozilla.org/show_bug.cgi?id=1589978.
Expected results:
Web Console :screenshot
and Firefox Screenshots do not hangs, and produce images that capture the entire screen when --fullpage
is set as parameter.
Substitute Web Console :screenshot
https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots code or Firefox Screenshots https://screenshots.firefox.com/ code for the current --headless
code, if they are different, so that users of Nightly can take screenshots with --headless
option.
Comment 1•4 years ago
|
||
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Hi,
I will move this over to a component so developers can take a look over it. If this is not the correct component please feel free to change it to an appropriate one.
Other related issue: bug 1589978
Thanks for the report.
Comment 2•4 years ago
|
||
The severity field is not set for this bug.
:bdahl, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•3 years ago
|
||
What happens if you specify a profile directory?
e.g.
mkdir temp-profile
firefox --profile=temp-profile --headless --screenshot URL
Reporter | ||
Comment 4•3 years ago
|
||
Does headless need to occupy an entirely different directory than ~/.mozilla
even wherer there is a separate profile directory created with firefox -CreateProfile "webrtc"
=> firefox -P webrtc --devtools --headless --screenshot URL
?
I am on a new OS that I have have not yet completely configured. I have Firefox 83 installed and will also install Nightly and test.
Reporter | ||
Comment 5•3 years ago
|
||
(In reply to Brendan Dahl [:bdahl] (84 regression triage) from comment #3)
What happens if you specify a profile directory?
e.g.mkdir temp-profile firefox --profile=temp-profile --headless --screenshot URL
Executing the exact commands at Firefox 83 yields no screenshot is saved to $HOME, $HOME/Downloads, or $HOME/Pictures.
$ mkdir temp-profile
$ firefox --profile=temp-profile --headless --screenshot https://bugzilla.mozilla.org/show_bug.cgi?id=1674289
*** You are running in headless mode.
Running with -P
hangs
$ firefox --no-remote -P default-release --headless --screenshot https://chomsky.info/articles/
*** You are running in headless mode.
until
^CExiting due to channel error.
no screenshot is saved to local filesystem.
Reporter | ||
Comment 6•3 years ago
|
||
Running :screenshot --fullpage
at Web Console results in a screenshot saved to local filesystem.
Reporter | ||
Comment 7•3 years ago
|
||
Same result at Nightly 85
I am closing this bug, because it is a duplicate of Bug 1589978, which is older and already prioritized, but thank you for filing the bug and documenting the workaround, which has probably helped other users already. I hope that we will soon be able to fix this bug. Please vote for Bug 1589978 to make that happen faster.
Description
•