Open Bug 1546062 Opened 6 years ago Updated 3 years ago

Headless doesn't work when redirect is involved

Categories

(Firefox :: Headless, defect, P3)

65 Branch
All
Unspecified
defect

Tracking

()

UNCONFIRMED

People

(Reporter: luis.panadero, Unassigned)

References

Details

This bug isn't fixed! Keeps falling with simple redirects :

firefox --screenshot x.jpg http://bibliotecadigital.jcyl.es --window-size=800,1000

Hangs with 66.0.3, firefox beta or firefox nightly!

index.html :

<HTML>
<HEAD>
<meta http-equiv="refresh" content="0;url=es/inicio/inicio.do"/>
</HEAD>
<BODY>
<SCRIPT>
<!--
top.location='es/inicio/inicio.do';
//-->
</SCRIPT>
</BODY>
</HTML>

+++ This bug was initially created as a clone of Bug #1526822 +++

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

  1. firefox --no-remote --headless -createProfile "headless-test1"
  2. firefox --no-remote --headless -P "headless-test1" --screenshot "http://www.gentoo.org/"

Actual results:

Nothing will happen:

Firefox will start and consume CPU cycles but no screenshot will be written.

If you change URL from "http://www.gentoo.org/" to "https://www.gentoo.org/" instead it will work.

Tested on Debian, Arch Linux and Gentoo. With Firefox 65 build from source and official binary provided by Mozilla.

You can use any other URL redirecting. For example http://www.debian.org/ will trigger same problem but https://www.debian.org/ will work. When using http://www.mozilla.org/ which won't work, you have to use https://www.mozilla.org/en-US/ for a working URL, just using https://www.mozilla.org/ won't work (I guess due to the redirect to "/en-us/").

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(bdahl)

I think this will be similar to bug 1412061 where we need wait for some delay.

Flags: needinfo?(bdahl)
Priority: -- → P3
See Also: → 1412061

Itsn't only screenshots. We observed this problem debuging why firefox hangs when we use it with Selenium. Hangs when try to follows the same redirect.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.