Mozilla サポートの検索

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 3 件の返信
  • 2 人がこの問題に困っています
  • 5 回表示
  • 最後の返信者: 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

選ばれた解決策

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.

この回答をすべて読む 👍 0

すべての返信 (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

選ばれた解決策

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.

この投稿は jwalker55 により に変更されました