PhilCodeEx / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

Loading base2 starts Java in Firefox 3 and 3.5 #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include a base2 into a HTML page
2. Load that page in FireFox 3.0 or 3.5 on Windows where the Java plugin is
installed.
3 Find out that Java VM is actually started

What is the expected output? What do you see instead?

Loading base2 should not start the Java VM.

What version of the product are you using? On what operating system?

Base 1.0 in FF 3.0 and 3.5 on Windows

Please provide any additional information below.

This is due to a bug in FF3 and 3.5 :

http://code.google.com/p/doctype/wiki/ArticleHereComesTheSun

base2 itself triggers the bug in the `detect` function when it accesses
`java` attribute of the window.

IMO, this can be fixed by executing on demand the code that detects java
instead of precomputing it. 

This way, people that do not need to detect Java would not be impacted. I
guess that those that need to detect java are happy to start it in most cases.

Original issue reported on code.google.com by got...@bubblenet.be on 9 Jan 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Damn. I always had Java disabled and never noticed this. Thanks for the report.

Original comment by dean.edw...@gmail.com on 9 Jan 2010 at 6:16

GoogleCodeExporter commented 8 years ago
Godefroid fixed it in this version, where he raises an exception that say that 
Java
detection is disabled:

http://codespeak.net/svn/kukit/kss.buildout/branch/1.4/3rd_party/base2-dom-fp-pa
tched.js

Original comment by l...@gmail.com on 10 Jan 2010 at 7:04

GoogleCodeExporter commented 8 years ago
What I did is not a fix; it is disabling Java detection.

I still need to look how to defer detection.

Original comment by got...@bubblenet.be on 10 Jan 2010 at 3:41