Closed Bug 1674289 Opened 4 years ago Closed 1 year ago

--headless --screenshot is broken, consistently hangs: Use Web Console :screenshot or Firefox Screenshots source code at --headless

Categories

(Firefox :: Headless, defect)

Firefox 83
defect

Tracking

()

RESOLVED DUPLICATE of bug 1589978

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.

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.

Component: Untriaged → Headless
See Also: → 1589978

The severity field is not set for this bug.
:bdahl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bdahl)

What happens if you specify a profile directory?
e.g.

mkdir temp-profile
firefox --profile=temp-profile --headless --screenshot URL
Severity: -- → S3
Flags: needinfo?(bdahl) → needinfo?(guest271314)

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.

Flags: needinfo?(guest271314)

(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.

Running :screenshot --fullpage at Web Console results in a screenshot saved to local filesystem.

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.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1589978
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.