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

WebView callback/ Java crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u25
    • javafx
    • None
    • Linux/Windows Java 7u25

    • web

      After adding this code, Java Crashes
      <pre>
                      browser.getEngine().getLoadWorker().stateProperty().addListener( new ChangeListener<Worker.State>() {
                          public void changed(ObservableValue<? extends Worker.State> p, Worker.State oldState, Worker.State newState) {
                              if (newState == Worker.State.SUCCEEDED) {
                                  JSObject win = (JSObject) browser.getEngine().executeScript("window");
                                  win.setMember("javacallback", listener);
                              }
                          }
                      });
      </pre>

      On the version 7u10 everything works fine

      Netbeans project
      https://drive.google.com/folderview?id=0Bz7309sTKJ2nanBCdUdwd3R4Tzg&usp=sharing


            peterz Peter Zhelezniakov
            valexandejfx Vorobyev Alexander (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: