← Back to team overview

desktop-packages team mailing list archive

[Bug 897794] Re: Firefox 8 User Agent String "Ubuntu; " addition causes attempt to download rather than display

 

I can confirm that, as a workaround, if you install the User Agent
Switcher:

https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/

and simply create a new user agent -- I called mine "Firefox 8.0" -- and
edit out the "Ubuntu; " (notice that the space after the semicolon is
removed), that this temporarily fixes the "vnd.wap.xhtml+xml" problem,
at least for the 4-5 sites I checked.

Note that the User Agent Switcher, when you create a new entry, prompts
you with the default user agent string of your version of Firefox.
Thus, this is really easy to do -- you do not have to create an entirely
new user agent string, simply edit the default as I described.

Just for clarity, you (obviously) must switch your user agent to your
new agent using Tools -> Default User Agent.  Once you change it, the
menu also changes (which I think is confusing at first), so in my case
the Tools menu changes to Tools -> Firefox 8.0.

This did not fix the problem I'm having with one website rendering raw
HTML -- the web interface for a D-Link DGS-1210-24 managed switch -- and
I have tried using several other user agent strings (i.e., IE6, IE7,
etc.) to no avail.  So, I suspect this particular problem of mine is
related to other changes within FF8 not having to do with the user agent
string.

I have attached a screenshot of the relevant settings in my User Agent
Switcher.

** Attachment added: "screenshot.png"
   https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/897794/+attachment/2620895/+files/screenshot.png

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

Title:
  Firefox 8 User Agent String "Ubuntu;" addition causes attempt to
  download rather than display

Status in “firefox” package in Ubuntu:
  Confirmed

Bug description:
  The patch added by Chris Coulson in the FF 8 packages to add "Ubutnu;"
  to FireFox's User Agent string has caused some sites to start offering
  a download of a "application/vnd.wap.xhtml+xml" or similar file.

  This change seems to have caused an issue with 51degrees.com's .NET
  Mobile Framework. Visiting a site that uses the framework now prompts
  to download an "application/vnd.wap.xhtml+xml" file.

  Obviously, this is likely the fault of the framework, and not Ubuntu.
  But I felt it should be logged, and I could not find any launchpad bug
  regarding this change.

  debian/patches/ubuntu-ua-string-changes.patch
  > Description: Add "Ubuntu" to the platform part of the UA string
  > Author: Chris Coulson <chris.coulson@xxxxxxxxxxxxx>

  The User Agent changed from:

  > Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101
  Firefox/7.0.1

  to

  > Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko/20100101
  Firefox/8.0

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


References