JDK-8040786 : Text is truncated in JavaScript to Java security warning dialog on OS X
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2014-04-17
  • Updated: 2014-10-15
  • Resolved: 2014-05-12
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.
JDK 7 JDK 8 JDK 9
7u71Fixed 8u20Fixed 9 b15Fixed
Description
FULL PRODUCT VERSION :
JDK 9, JDK 8, JDK 7

ADDITIONAL OS VERSION INFORMATION :
OS X

A DESCRIPTION OF THE PROBLEM :
Text of the message and the heading of "JavaScript to Java" security warning dialog shown, when JavaScript invokes Java applet's method, is truncated starting from JDK 7u55 on OS X platform.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Upload HTML, JNLP and JAR files from the attached archive file "TrimmedTextInJavaScriptToJavaWarning.zip" with the test case into a directory on a web server.
2. Install the testable JRE 9, JRE 8 or JRE 7.
3. Only for testing JRE 9. Go to "Java Control Panel -> Security -> Edit Site List..." and add a full URL of "TestCase.html" file uploaded to the web server in step #1 to the exception site list.
4. Open a web browser and load HTML page with the test case from the step #1.
5. On the test case web page click "Call Applet Method" button. "JavaScript to Java" security warning dialog should be shown.
Comments
SQE OK to take the low impact fix into CPU14_04
18-06-2014

It was defined that the bug is a regression of the fix for the bug JDK-8027203, because: - The bug could not be reproduced with JRE 7 compiled from the source code, whose revision equals revision of the fix for the bug JDK-8027203 -1. - The bug could be reproduced with JRE 7 compiled from the source code with revision of the fix for the bug JDK-8027203. Also the bug was reproduced with JRE 9 b11 by means of the attached test case.
05-05-2014

The test case was substituted for the version which allows to reproduce the bug with JRE 9 also.
05-05-2014

A screenshot demonstrating the bug reproduced with JRE 7u55 was attached to the bug record.
18-04-2014

The bug was reproduced with the attached test case "TrimmedTextInJavaScriptToJavaWarning.zip" on OS X 10.9.1, both Firefox 28.0 and Safari browsers with JRE 7u55 b13, JRE 8u5 b13. However no JavaScript to Java security warning dialog is shown on JRE 9 b09, which is currently the latest promoted JRE 9.
18-04-2014

The bug could not be reproduced by loading various demo applets from "The Java Tutorials" web site (http://docs.oracle.com/javase/tutorial/deployment/applet/index.html) in the following environment configurations: - JRE 7u55 b13 - OS X 10.9.1, OS X 10.7.5 - Firefox 28.0
17-04-2014