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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 7u6
    • Component/s: javafx
    • None
    • Environment:

      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.

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

              Created:
              Updated:
              Imported: