Details
Description
When using a JSVGCanvas to display a SVG, which has an <script type="text/ecmascript"/> element, the following error is displayed in a message box:
"Function importClass must be called with a class; had "[JavaPackage org.w3c.dom.DOMImplementationSource]".
This problem broke our code, when we switched from batik 1.16 to 1.17.
The problem seems to be a mismatch between the classes imported from the default ImportInfo.getImports() in RhinoInterpreter.init() and the new RhinoClassShutter, which disables access to all java class, unless somebody adds them to RhinoClassShutter.WHITELIST.
While it is simple to add the files from ImportInfo.getImports().getClasses() to RhinoClassShutter.WHITELIST, it is difficult to know, whether these classes are essential to the JavaScript scripting support or not.
Please find attached a simple program and SVG file, which reproduces the problem.