JDK-6745485 : Firefox browser crash with "javascript:alert(window.java);"
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-05
  • Updated: 2010-09-08
  • Resolved: 2008-09-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6u10 b32Fixed
Related Reports
Relates :  
Relates :  
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.

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.

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/