Details
-
Bug
-
Resolution: Fixed
-
P2
-
8u131, 9
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8182277 | 8u152 | Arunprasad Rajkumar | P2 | Closed | Fixed | b05 |
JDK-8184395 | 8u151 | Arunprasad Rajkumar | P2 | Closed | Fixed | b05 |
Description
FULL PRODUCT VERSION :
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [version 6.3.9600]
A DESCRIPTION OF THE PROBLEM :
Webview of javafx v1.8.0_131 isn't able to display demo page of pdf.js ("https://mozilla.github.io/pdf.js/web/viewer.html").
This works in previous versions of java.
REGRESSION. Last worked in version 8u112
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
//import com.mohamnag.fxwebview_debugger.DevToolsDebuggerServer;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebView131Test extends Application
{
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception
{
WebView browser = new WebView();
WebEngine webEngine = browser.getEngine();
webEngine.setOnError(event -> System.err.println(event.getMessage()));
webEngine.setOnAlert(event -> System.err.println(event.getData()));
webEngine.setJavaScriptEnabled(true);
webEngine.load("https://mozilla.github.io/pdf.js/web/viewer.html");
Scene scene = new Scene(browser);
primaryStage.setScene(scene);
primaryStage.show();
// try{
// DevToolsDebuggerServer.startDebugServer(webEngine.impl_getDebugger(), 51742);
// }
// catch(Exception e){
// e.printStackTrace();
// }
// primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
// @Override
// public void handle(WindowEvent event){
// try{
// DevToolsDebuggerServer.stopDebugServer();
// }
// catch(Exception e){
// e.printStackTrace();
// }
// }
// });
}
}
---------- END SOURCE ----------
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [version 6.3.9600]
A DESCRIPTION OF THE PROBLEM :
Webview of javafx v1.8.0_131 isn't able to display demo page of pdf.js ("https://mozilla.github.io/pdf.js/web/viewer.html").
This works in previous versions of java.
REGRESSION. Last worked in version 8u112
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
//import com.mohamnag.fxwebview_debugger.DevToolsDebuggerServer;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebView131Test extends Application
{
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception
{
WebView browser = new WebView();
WebEngine webEngine = browser.getEngine();
webEngine.setOnError(event -> System.err.println(event.getMessage()));
webEngine.setOnAlert(event -> System.err.println(event.getData()));
webEngine.setJavaScriptEnabled(true);
webEngine.load("https://mozilla.github.io/pdf.js/web/viewer.html");
Scene scene = new Scene(browser);
primaryStage.setScene(scene);
primaryStage.show();
// try{
// DevToolsDebuggerServer.startDebugServer(webEngine.impl_getDebugger(), 51742);
// }
// catch(Exception e){
// e.printStackTrace();
// }
// primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
// @Override
// public void handle(WindowEvent event){
// try{
// DevToolsDebuggerServer.stopDebugServer();
// }
// catch(Exception e){
// e.printStackTrace();
// }
// }
// });
}
}
---------- END SOURCE ----------
Attachments
Issue Links
- backported by
-
JDK-8182277 Javafx WebView fails to render pdf.js
- Closed
-
JDK-8184395 Javafx WebView fails to render pdf.js
- Closed
- duplicates
-
JDK-8088852 Website http://andreasgal.github.io/pdf.js/ (Demo button) won't load
- Open
-
JDK-8143604 pdf.js doesn't work inside WebView component
- Closed