We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Javascript settings in Firefox

more options

I am sure it is just my lack of knowledge, me doing something silly and/or missing the obvious, but I am a bit confused about Java and JavaScript.

Due to recent JavaScript exploits, I wanted to try run my browsers with it disabled. I realize that Java and JavaScript are two different things but firstly, I uninstalled Java via the control panel. After this the Java Plug-ins disappeared from Firefox. As I understand it, this now means my browsers will not run Java Applets.

So, then to JavaScripts. In Firefox, if I go to say www.vodafone.co.uk, the home page will not display correctly unless I tick the "Enable JavaScript" option.

My question is therefore, is the ability to run JavaScripts a built in feature of Firefox and totally unrelated to whether Java itself is installed on the PC? If this is so then also, how does this relate to Java versions, i.e. Java version 6 update 31, fixes the Flashback exploit but how does the JavaScript implementation in Firefox get updated or is this exploit only applicable to Java applets and not JavaScripts?

If someone could explain I would be most grateful.

Kind regards

I am sure it is just my lack of knowledge, me doing something silly and/or missing the obvious, but I am a bit confused about Java and JavaScript. Due to recent JavaScript exploits, I wanted to try run my browsers with it disabled. I realize that Java and JavaScript are two different things but firstly, I uninstalled Java via the control panel. After this the Java Plug-ins disappeared from Firefox. As I understand it, this now means my browsers will not run Java Applets. So, then to JavaScripts. In Firefox, if I go to say www.vodafone.co.uk, the home page will not display correctly unless I tick the "Enable JavaScript" option. My question is therefore, is the ability to run JavaScripts a built in feature of Firefox and totally unrelated to whether Java itself is installed on the PC? If this is so then also, how does this relate to Java versions, i.e. Java version 6 update 31, fixes the Flashback exploit but how does the JavaScript implementation in Firefox get updated or is this exploit only applicable to Java applets and not JavaScripts? If someone could explain I would be most grateful. Kind regards

由Machine_Silver于修改

所有回复 (2)

more options

Hello,

yes, Java and JavaScript settings and preferences for interactive web pages are two different things, really.

Java applets are small programs coded in the Java programming language, they're NOT part of Firefox and, if I recall correctly, Java applets *may* as well have access to your computer (you need to confirm it every time). JavaScript coded scripts run sandboxed, which means that they don't have access to anything outside the website. If they do, this is a security issue and should be fixed immediately.

To your questions:

Yes, JavaScript is unrelated to Java and JavaScript can run when no Java Runtime Environment is installed. JavaScript is part of Firefox. When Java gets updated, it fixes Java-related issues, like the exploit you mentioned above. JavaScript most likely doesn't have this exploit.

The JavaScript engine gets updated each time Firefox does. Thus, you should be running the latest version anyway.

more options

I appreciate you taking the time to post this clear and informative reply.

Thanks very much.

Kind regards