FULL PRODUCT VERSION :
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hostname 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I'm unable to access the following web sites via javafx.scene.web.WebView
http://www.iheart.com/ (just go to the site: fails)
http://www.musixhub.com/ (pick any album and song: fails)
http://www.houstonpublicmedia.org/listen-live/ (press the play button: fails)
http://www.iheart.com/ (just go to the site: fails)
http://www.cbs.com/ (mouse over shows; select a show; play the latest: fails)
http://www.nbc.com/ (click shows; pick a show; press play; fails)
http://www.abc.com/ (just go to the site: fails)
http://www.fox.com/ (click shows; pick a show; press play; fails)
REGRESSION. Last worked in version 8u102
ADDITIONAL REGRESSION INFORMATION:
There's a big difference between viewing the sites via Chrome.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Save code to a file called WebSiteApp.java
compile: javac WebSiteApp.java
run: java WebSiteApp url
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected behavior to be similar to Chrome.
ACTUAL -
Actual results of going to the sites are unusable.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class WebSiteApp extends javafx.application.Application {
private static String defaultURL = "http://www.yahoo.com/";
public void start(javafx.stage.Stage stage) {
javafx.scene.web.WebView webView =
new javafx.scene.web.WebView();
javafx.scene.web.WebEngine webEngine = webView.getEngine();
stage.setScene(new javafx.scene.Scene(webView));
stage.show();
webEngine.getLoadWorker().stateProperty().addListener(
(ov, oldState, newState) -> {
if (newState == javafx.concurrent.Worker.State.SUCCEEDED) {
stage.setTitle(webEngine.getLocation());
}
}
);
String url = defaultURL;
if (getParameters().getRaw().size() > 0) {
url = getParameters().getRaw().get(0);
}
if (!url.matches("^https?://.*")) {
url = "http://" + url;
}
defaultURL = url;
webEngine.load(defaultURL);
}
public static void main(String[] args) {
WebSiteApp.launch(args);
}
}
---------- END SOURCE ----------
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hostname 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I'm unable to access the following web sites via javafx.scene.web.WebView
http://www.iheart.com/ (just go to the site: fails)
http://www.musixhub.com/ (pick any album and song: fails)
http://www.houstonpublicmedia.org/listen-live/ (press the play button: fails)
http://www.iheart.com/ (just go to the site: fails)
http://www.cbs.com/ (mouse over shows; select a show; play the latest: fails)
http://www.nbc.com/ (click shows; pick a show; press play; fails)
http://www.abc.com/ (just go to the site: fails)
http://www.fox.com/ (click shows; pick a show; press play; fails)
REGRESSION. Last worked in version 8u102
ADDITIONAL REGRESSION INFORMATION:
There's a big difference between viewing the sites via Chrome.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Save code to a file called WebSiteApp.java
compile: javac WebSiteApp.java
run: java WebSiteApp url
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected behavior to be similar to Chrome.
ACTUAL -
Actual results of going to the sites are unusable.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class WebSiteApp extends javafx.application.Application {
private static String defaultURL = "http://www.yahoo.com/";
public void start(javafx.stage.Stage stage) {
javafx.scene.web.WebView webView =
new javafx.scene.web.WebView();
javafx.scene.web.WebEngine webEngine = webView.getEngine();
stage.setScene(new javafx.scene.Scene(webView));
stage.show();
webEngine.getLoadWorker().stateProperty().addListener(
(ov, oldState, newState) -> {
if (newState == javafx.concurrent.Worker.State.SUCCEEDED) {
stage.setTitle(webEngine.getLocation());
}
}
);
String url = defaultURL;
if (getParameters().getRaw().size() > 0) {
url = getParameters().getRaw().get(0);
}
if (!url.matches("^https?://.*")) {
url = "http://" + url;
}
defaultURL = url;
webEngine.load(defaultURL);
}
public static void main(String[] args) {
WebSiteApp.launch(args);
}
}
---------- END SOURCE ----------