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

[WebView] Java method not getting called from HTML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8u102, 9
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web
    • CPU:
      generic
    • OS:
      generic

      Description

      While triaging JDK-8086098, found this issue.
      Please find the attached test case [webViewSample.zip]. This is about communication between JavaFX and HTML inside WebView.
      Steps to reproduce:
      1. Run the CallingJavaFromJSTest.java
      2. Click on any Button.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected:
      Java method "javaMethod()" should be called.
      Actual:
      Java method "javaMethod()" is not being called.

      But when we click on hyperlink second time, java method is being called and then clicking buttons also works.
      Please find JDK results:
      ================
      windows 10
      --------
      8u40 : pass
      8u121 : pass
      9b01 : pass
      9ea+88 : pass
      9ea+140: pass
      9ea+146: pass
      9-ea+147 : fail
      9-ea+148 : fail
      9ea+150 : fail
      9-ea+163 : fail

      windows 7
      --------
      8u40 : pass
      8u121 : pass
      9-ea+153 : fail

      ubuntu
      --------
      8 : pass
      8u121 : fail
      9-ea : fail

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              pmangal Priyanka Mangal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: