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

WebView crashes on calling webEngine.load(url) in a webEngine.locationProperty() ChangeListener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • None
    • 2.2b11, jdk7u4, winXPsp3

    • web

      A jvm crash occurs if you load a document in a locationProperty listener.

          webView.getEngine().locationProperty().addListener(new ChangeListener<String>() {
            @Override public void changed(ObservableValue<? extends String> prop, final String before, String after) {
              if (!"http://www.google.com".equals(after)) {
                webView.getEngine().load("http://www.google.com");
              }
            }
          });

      Crash log and sample app attached.

            Unassigned Unassigned
            josmithjfx John Smith (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: