United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6745485 Firefox browser crash with "javascript:alert(window.java);"
JDK-6745485 : Firefox browser crash with "javascript:alert(window.java);"

Details
Type:
Bug
Submit Date:
2008-09-05
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-09-24
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b32)

Related Reports
Relates:
Relates:

Sub Tasks

Description
During investigation of 6745455 it was determined that Firefox 3 can be crashed if the user enters "javascript:alert(window.java);" into the address bar of a new browser window, creates a new browser window, and repeats the same step.

                                    

Comments
SUGGESTED FIX

webrev: http://sa.sfbay.sun.com/projects/deployment_data/6u10/6745485.0
testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6745485/
                                     
2008-09-06
EVALUATION

Added dummy protocol handlers for URLs starting with "about:" and
"chrome:" to allow these URLs to be parsed without throwing
MalformedURLException. Added explicit null check in AbstractPlugin
which appears to be necessary in failure cases because Firefox's crash
handler otherwise catches access violations due to Java
NullPointerExceptions.
                                     
2008-09-06



Hardware and Software, Engineered to Work Together