< prev index next >

modules/javafx.web/src/main/java/javafx/scene/web/WebEngine.java

Print this page

        

@@ -1359,11 +1359,12 @@
                     message.set("Loading " + url);
                     updateLocation(url);
                     break;
                 case PAGE_REPLACED:
                     message.set("Replaced " + url);
-                    updateLocation(url);
+                    // Update only the location, don't change title or document.
+                    WebEngine.this.location.set(url);
                     break;
                 case PAGE_FINISHED:
                     message.set("Loading complete");
                     updateProgress(1.0);
                     updateState(State.SUCCEEDED);
< prev index next >