Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194816

java.net.MalformedURLException will show up when java invokes JS function via showDocument

XMLWordPrintable

    • b40

        ENV: win8.1/IE11/jre10-b38

        Steps to reproduce:
        0. Enable java console and trace.
        1. Add "http://sqeweb.us.oracle.com" to ESL
        2. Load app: http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/liveconnect/html/testJSShowDocument.html
        In this test we are going to call javascript using showDocument from java instead of using JSobject API.
        3. Accept security warning dialog.
        4. If you see the following exception, this issue is reproduced:
        java.net.MalformedURLException: unknown protocol: javascript
        at java.base/java.net.URL.<init>(Unknown Source)
        at java.base/java.net.URL.<init>(Unknown Source)
        at java.base/java.net.URL.<init>(Unknown Source)
        at JSShowDocApplet.init(JSShowDocApplet.java:30)
        at jdk.plugin@10-ea/sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
        at jdk.plugin@10-ea/sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)

        src: http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/liveconnect/src/JSShowDocApplet.java

        Note: no such issue with 9.0.4 b11

              herrick Andy Herrick (Inactive)
              wenjyang Crystal Yang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: