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

Java WebView communication between java and javascript fails in Java 8 U112

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 9
    • 8u112, 9
    • javafx
    • None
    • JavaSE8u112 Windows+x86/x64

    • web
    • x86
    • windows

      Our javafx application extensively uses communication between java and javascript via
      netscape.javascript.JSObject.call and JSObject.setMember().

      These functions worked completely fine in Java 8 U92, but when we upgraded to Java 8 U112, we only can use these method for a limited amount of time before they start failing and they no longer get called and don't print out any error.

      For example, the attached JavaFxInteropt will run indefinitely in Java 8 U92 (I've gotten the counter up to 11,000 and I stopped counting, but it will fail pretty quickly in Java 8 U112 (when the counter is up to 160 or so, it fails and stops communicating between java and javascript.

      The page simulates the bug found in our software, we have a single web view and we have a bunch of interropt calls and users refresh the webview and we expect that calls to continue indefinitely since they are setup fresh on each State.SUCCEEDED when the Web Engine is loaded.

      This back and forth between java and javascript is very important to our product and it we cannot run our software without consistent communication between java and javascript.

            mbilla Murali Billa
            gucheng Guixin Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: