Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
已存档

From Javascript, how do I know if version is ESR or not?

jsilva

I need to be able to determine in Javascript whether or not the browser used by a user is a ESR version or not.

I need to be able to do this regardless of the OS on which the browser is running.

I need to be able to determine in Javascript whether or not the browser used by a user is a ESR version or not. I need to be able to do this regardless of the OS on which the browser is running.

所有回复 (1)

hello jsilva, i think there's no reliable way to do that. though you can use javascript to check a client's user agent, the firefox extended support releases currently don't contain a special string in the ua which would identify them. since there were no regular firefox versions 10.0.3 - 10.0.9 released, you only could assume that you're dealing with a esr version when those show up...

edit: furthermore in future versions the firefox user agent won't reveal the patch level of a version any longer, so this won't work with the upcoming firefox 17 esr - it will always show up as Firefox/17.0

由philipp于修改