-
Bug
-
Resolution: Unresolved
-
P3
-
jfx17.0.11, jfx21.0.3, jfx22.0.1
-
x86_64
-
windows
A DESCRIPTION OF THE PROBLEM :
I use a WebView that displays a web page.
The HTML source code contains LF or CRLF.
With JFX 21.0.3, a box is displayed at the position of the LF or CRLF in the WebView.
This is not the case with JFX 21.0.2.
I have no influence on the content of the website.
A browser (e.g. Chrome, Firefox) normalises this type of formatting and does not display a box. I would expect the WebView to do the same.
REGRESSION : Last worked in version 21
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the source code with the simple example.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No box should be displayed at the position of the LF or CRLF.
ACTUAL -
A box is displayed at the position of the LF or CRLF.
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebViewExample extends Application
{
public WebViewExample()
{
}
@Override
public void start(Stage primaryStage)
{
WebView webView;
WebEngine webEngine;
String htmlContent;
StackPane root;
Scene scene;
webView = new WebView();
webEngine = webView.getEngine();
htmlContent = "<html><body><p>test test\r\ntest test</p><body></html>";
webEngine.loadContent(htmlContent);
root = new StackPane();
root.getChildren().add(webView);
scene = new Scene(root, 300, 200);
primaryStage.setScene(scene);
primaryStage.setTitle("WebView Example");
primaryStage.show();
}
public static void main(String[] args)
{
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always
I use a WebView that displays a web page.
The HTML source code contains LF or CRLF.
With JFX 21.0.3, a box is displayed at the position of the LF or CRLF in the WebView.
This is not the case with JFX 21.0.2.
I have no influence on the content of the website.
A browser (e.g. Chrome, Firefox) normalises this type of formatting and does not display a box. I would expect the WebView to do the same.
REGRESSION : Last worked in version 21
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the source code with the simple example.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No box should be displayed at the position of the LF or CRLF.
ACTUAL -
A box is displayed at the position of the LF or CRLF.
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebViewExample extends Application
{
public WebViewExample()
{
}
@Override
public void start(Stage primaryStage)
{
WebView webView;
WebEngine webEngine;
String htmlContent;
StackPane root;
Scene scene;
webView = new WebView();
webEngine = webView.getEngine();
htmlContent = "<html><body><p>test test\r\ntest test</p><body></html>";
webEngine.loadContent(htmlContent);
root = new StackPane();
root.getChildren().add(webView);
scene = new Scene(root, 300, 200);
primaryStage.setScene(scene);
primaryStage.setTitle("WebView Example");
primaryStage.show();
}
public static void main(String[] args)
{
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8318614 Update WebKit to 617.1
-
- Resolved
-