[Bug 867753] Re: Accept-Language header contains incorrect value

Bug Watch Updater 867753 at bugs.launchpad.net
Tue Oct 11 18:21:06 UTC 2011


Launchpad has imported 2 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=693687.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-10-11T17:51:13+00:00 Chris Coulson wrote:

Ok, I'm not sure the bug title is entirely appropriate, and I'm not sure
whether the addon manager is the appropriate place for this bug.

This was initially reported at https://launchpad.net/bugs/867753

This started off when the reporter stated that the Accept-Language
header in all of their outgoing http requests was set to the wrong value
("en-us,en;q=0.5"), despite the fact that intl.accept_languages was set
to the correct value according to about:config ("en-gb, en"). This is
set to a complex value, with the real value coming from the reporters
en-GB language pack addon.

We initially suspected that the bug was due to the JSONovich addon, as
the problem was resolved after disabling that addon. However, further
investigation has shown that JSONovich doesn't appear to be doing
anything wrong.

Note, than JSONovich is a bootstrapped extension.

What appears to be happening is that something in it's startup() entry
point triggers the initialization of the nsHttpHandler service, and
nsHttpHandler reads and processes the value of intl.accept_languages at
this point. However, when this happens, no extension chrome has been
loaded - so the value ends up being provided by the built-in en-US
provider instead.

So, it seems that it currently isn't possible to reliably read complex
prefs from anything which runs inside the startup() function.

Reply at: https://bugs.launchpad.net/firefox/+bug/867753/comments/13

------------------------------------------------------------------------
On 2011-10-11T17:54:45+00:00 Chris Coulson wrote:

Hmmm, so actually, I guess that this is where the problem occurs:

http://mxr.mozilla.org/mozilla-
central/source/toolkit/xre/nsXREDirProvider.cpp#715

Reply at: https://bugs.launchpad.net/firefox/+bug/867753/comments/14


** Changed in: firefox
       Status: Unknown => Confirmed

** Changed in: firefox
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/867753

Title:
  Accept-Language header contains incorrect value

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/867753/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list