Posted on April 8, 2020
JxBrowser 7.6
We are glad to announce the release of the new JxBrowser 7.6!
Clearing HTTP authentication cache
In JxBrowser 7.6 the API has been extended with functionality that allows you to clear HTTP authentication cache. The following code snippet demonstrates how to do it:
engine.httpAuthCache().clear();
@JsAccessible for default interface methods
The JavaScript-Java bridge functionality has been extended with the possibility to mark the default
interface methods
with the @JsAccessible
annotation to allow JavaScript code accessing these methods as well. For example:
public interface MyInterface {
@JsAccessible
default void method() { }
}
SSL connection version for URL request
The UrlRequest
class has been extended with the method that allows getting the SSL connection version if it is
available and the URL request represents an HTTPS request. For example:
engine.network().on(RequestCompleted.class, event -> {
event.urlRequest().sslVersion().ifPresent(sslVersion -> {
System.out.println("SSL version: " + sslVersion);
});
});
Improvements
- The
HttpHeader.of(String name, String value)
method now accepts the empty values.
Fixed issues
- Content of a web page is not rendered after embedding
BrowserView
into aJFrame
in the hardware accelerated rendering mode on Windows. - Incorrect
BrowserView
display position when it is embedded intoJTabbedPane
in the hardware accelerated rendering mode. - JavaScript workers do not render content until the
Browser
instance is resized in the off-screen rendering mode on Windows. - Thread deadlock when hiding
BrowserView
in the hardware accelerated rendering mode on macOS. BrowserView
is still trying to use an already closed channel after itsEngine
has been closed or crashed. It leads to the unexpectedIllegalStateException
errors that prevent the application from removing theBrowserView
component.- The
IllegalStateExceptioin
error when accessing the frames of some specific web pages. - Webcam is not accessible on the web pages that work with WebRTC to carry out a live streaming using webcam.
- Content of a web page is not rendered unless you resize
BrowserView
in the off-screen rendering mode. - Loading a specific URL containing JavaScript code in the heavyweight headless mode causes the renderer process becomes unresponsive after embedding the browser in a UI frame.
- Acid3 test shows an error message in a text which says that it should not be seen.
- Web page is not rendered after reopening it in the popup window on macOS.
- Crash when a web page and PDF document are loaded frequently.
- Crash when opening print preview for multiple PDFs in an
IFRAME
on Windows. - Crash when loading a specific PDF document on Windows.
- Random crash on the
Engine
startup on Windows. - The missing
Accept-language
header when the library sends HTTP request headers. - The
SELECT
drop down popup is not rendered sometimes in the off-screen rendering mode. - The key code cannot be detected when pressing the “+” key on the German keyboard in the off-screen rendering mode.
- The
NullPointerException
error when accessing DOM nodes from different threads. - The
NullPointerException
error when closing aBrowser
instance while another instances are visible, in the hardware accelerated rendering mode on Windows and Linux. - The mouse scroll events are triggered two times instead of one on a web page in both rendering modes.
- The cache directory is not created when a user data directory path is specified with
../
on Windows. - The Swing
BrowserView
drag-and-drop events are aborted if the component is hidden before the drop. - Impossible to send a certain URL-encoded POST data when
BeforeSendUploadDataCallback
is set. - The
*.webm
resources are not handled byInterceptRequestCallback
in the incognito mode. - The
ConcurrentModificationException
error when closing popup. - The Swing
BrowserView
is displayed in the 0x0 window position when embedded intoJTabbedPane
in the hardware accelerated rendering mode on Windows. - The
ChromiumProcessStartupFailureException
error when creating anEngine
instance on Windows.
Download JxBrowser 7.6
Please share your email with us, and we'll send you download instructions.
We were unable to send the email. Please use the direct link to download JxBrowser.
If you are a registered customer you don't need to do anything to use this update.
If you would like to evaluate the product, you need an evaluation license.
Follow @JxBrowserTeam to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.