This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

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

  • 3 antwoorde
  • 2 hierdie probleem
  • 5 views
  • Laaste antwoord deur jwalker55

more options

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

Gekose oplossing

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.

Lees dié antwoord in konteks 👍 0

All Replies (3)

more options

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

more options

Gekose oplossing

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.

more options

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.

Gewysig op deur jwalker55