본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

userAgent - OS X version issue. Why is it that if I'm on OS X 10.7.5, the userAgent only reports 10.7?

  • 1 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: user633449

more options

I am trying to identify exactly the version of the Mac OS X the clients are using, in order to display (or not) an information message.

To my surprise, when calling in javascript: navigator.userAgent this is working great in Safari/Chrome (ie. 10_7_5), but not in FF 21.0 (only 10.7 is reported). Why do I also need the last minor in the OS version?! Because a serious kernel bug present in OS X 10.8, 10.8.1, 10.8.2 and 10.8.3 was fixed in 10.8.4. If the user is not on 10.8.4 or later, I want to display an information message. SO, HOW CAN I DO THIS IN FF, WITHOUT ASKING THE USER TO RUN/ INSTALL A Java Applet, AR NAY ADDITIONAL JUNK?

Why FF no longer displays the full OS version when calling the navigator.userAgent?

Thank you,

Teddy.

I am trying to identify exactly the version of the Mac OS X the clients are using, in order to display (or not) an information message. To my surprise, when calling in javascript: navigator.userAgent this is working great in Safari/Chrome (ie. 10_7_5), but not in FF 21.0 (only 10.7 is reported). Why do I also need the last minor in the OS version?! Because a serious kernel bug present in OS X 10.8, 10.8.1, 10.8.2 and 10.8.3 was fixed in 10.8.4. If the user is not on 10.8.4 or later, I want to display an information message. SO, HOW CAN I DO THIS IN FF, WITHOUT ASKING THE USER TO RUN/ INSTALL A Java Applet, AR NAY ADDITIONAL JUNK? Why FF no longer displays the full OS version when calling the navigator.userAgent? Thank you, Teddy.

모든 댓글 (1)

more options

User Agent doesn't display minor OS versions and there is no way to force it to. If you are running an enterprise you should begin to make your users update other ways.