After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 426076 - Epiphany+xulrunner lacks Gecko in user-agent
Epiphany+xulrunner lacks Gecko in user-agent
Status: RESOLVED NOTGNOME
Product: epiphany
Classification: Core
Component: [obsolete] Backend:Mozilla
2.18.x
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2007-04-04 00:27 UTC by Eric Anderson
Modified: 2007-04-16 22:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Eric Anderson 2007-04-04 00:27:16 UTC
Please describe the problem:
Epiphany does not have Gecko in the user-agent when using the xulrunner backend. Websites that do browser sniffing for Gecko (i.e., GMail) do not work correctly. http://developer.mozilla.org/en/docs/Browser_Detection_and_Cross_Browser_Support notes that sites should look for "Gecko/" in the user-agent.

Changing general.useragent.extra.epiphany to a string in the form of "Gecko/YYYMMDD Epiphany/2.18" fixes the broken sites. Using "Gecko/Epiphany/2.8" does not fix all the sites. Unfortunately, in 
embed/mozilla/mozilla-embed-single.cpp, Epiphany fills the useragent after loading user preferrences, so if I restart Epiphany the user-agent is set back to "Epiphany/2.18" and I must change it again.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Reinout van Schouwen 2007-04-04 08:39:42 UTC
Might be related to the fact that the UA string must not be longer than 128 chars, otherwise plugins will fail.
Comment 2 Christian Persch 2007-04-04 09:13:43 UTC
Which distro? Which xulrunner version?
Comment 3 Eric Anderson 2007-04-04 13:28:15 UTC
I am using xulrunner-1.8.0.4 on Gentoo. With Gecko/YYYYMMDD in the UA the string is 82 characters.
Comment 4 Christian Persch 2007-04-04 17:42:18 UTC
I'd say this is probably a xulrunner bug on gentoo then, since it works on debian xulrunner.
Comment 5 Eric Anderson 2007-04-04 22:35:04 UTC
I just submitted a bug to Gentoo (http://bugs.gentoo.org/show_bug.cgi?id=173408) and referred to this bug.
Comment 6 Eric Anderson 2007-04-16 22:31:25 UTC
The problem was with an older version of xulrunner. Sorry for bugging here first :)