Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is there any user agent to differentiate firefox metro and desktop mode?

  • 3 பதிலளிப்புகள்
  • 2 இந்த பிரச்னைகள் உள்ளது
  • 5 views
  • Last reply by jwalker55

My application runs with silverlight plugin.I have to provide a user friendly message in metro mode that the plugin is not supported?

How will I detect if firefox is running in desktop or metro mode? Please reply.Very urgent

My application runs with silverlight plugin.I have to provide a user friendly message in metro mode that the plugin is not supported? How will I detect if firefox is running in desktop or metro mode? Please reply.Very urgent

தீர்வு தேர்ந்தெடுக்கப்பட்டது

See also this old discussion about possible changes to the UA header on Metro, although we haven't actually implemented any of the proposals there:

https://groups.google.com/d/topic/mozilla.dev.platform/tT-oz7yJ6VM/discussion

In general we don't like broadcasting information in the UA header as part of every request, if we can add a more specific API instead.

Read this answer in context 👍 0

All Replies (3)

Hi, I'm one of the Firefox for Metro developers. Right now there's no UA difference between the Metro and desktop modes, and I'm not sure if there's a good way for web developers to detect the lack of plugin support when running in Metro mode. I've filed this bug to investigate and fix this problem:

https://bugzilla.mozilla.org/show_bug.cgi?id=938722

You might also be interested in this bug; we'd like to have the Metro browser automatically provide a useful message to users on pages that require plugins:

https://bugzilla.mozilla.org/show_bug.cgi?id=936907

தீர்வு தேர்ந்தெடுக்கப்பட்டது

See also this old discussion about possible changes to the UA header on Metro, although we haven't actually implemented any of the proposals there:

https://groups.google.com/d/topic/mozilla.dev.platform/tT-oz7yJ6VM/discussion

In general we don't like broadcasting information in the UA header as part of every request, if we can add a more specific API instead.

Is there any way to modify the user agent string for metro? I am using this for a single purpose on Win 8.1 Pro tablets to display an intranet site for our users. I would modify the site myself, but I don't think the vendor would support us anymore (lol). All I need it to do is use a tablet UA string like a Galaxy Tab or something so this particular intranet site will feed it the tablet version, similar to what you can do with the desktop browser with a user agent switcher add-on.

Edit: Ok, so it's possible to add the "general.useragent.override" preference in about:config (metro-prefs.js), but the change won't stick after you close the browser. How do I make the setting stick so I don't have to add it every time I start the browser?

Edit2: Ok, so changes have to be made to the js file while the browser isn't running, then they'll stick.

jwalker55 மூலமாக திருத்தப்பட்டது