Posted on
JxBrowser 7.11
In this update we introduce support of Amazon Corretto and AdoptOpenJDK 8 and 11, extend the JavaScript-Java Bridge API with the possibility to access Java fields from JavaScript, improve stability and fix the reported issues.
Amazon Corretto and AdoptOpenJDK
Use JxBrowser with Amazon Corretto and AdoptOpenJDK 8 and 11 on Windows, macOS, and Linux with all supported UI toolkits such as Swing, JavaFX, and SWT.
Read more about all supported JDKs and platforms.
Accessing Java fields from JavaScript
Access the public fields of a Java object injected into JavaScript through the JavaScript-Java Bridge API.
The JavaScript-Java Bridge API allows injecting Java objects into JavaScript and calling their public methods annotated
with @JsAccessible. Now, you can access the public fields as well by making them accessible from JavaScript via
the @JsAccessible annotation. For example:
public class JavaObject {
@JsAccessible
public String accessibleField;
}
...
JsObject window = frame.executeJavaScript("window");
window.putProperty("java", new JavaObject());
Now you can access and modify the value of the accessible field from JavaScript:
window.java.accessibleField = "My value";
Improvements
- The
BrowserViewre-parenting is properly handled in SWT in the hardware accelerated rendering mode now. - The library detects when parent
CompositeofBrowserViewhas been shown/hidden in Eclipse RCP in the hardware accelerated rendering mode. - All references to the Swing classes in the JavaFX
BrowserViewimplementation have been removed. - The Hunspell dictionaries on Windows and Linux will not be downloaded if spell checking is disabled.
Fixed issues
BrowserViewin Eclipse tabs overlapping other tabs in the hardware accelerated rendering mode on Windows.- The
RequestCompletedandRequestDestroyedevents fired when URL request has not started because it was canceled inLoadResourceCallback. - Blurred custom cursors on Windows in the off-screen rendering mode.
- The public methods marked with
@JsAccessiblecalled twice when closingBrowser. - The SWT Print Preview dialog not displayed in the off-screen rendering mode on macOS.
- The
IndexOutOfBoundsExceptionerror when closing popupBrowserthrough thewindow.close()JavaScript function. - The
IllegalStateExceptionerror inBrowserViewduring closing itsBrowserinstance in the hardware accelerated rendering mode. - JavaFX
BrowserViewoverlapping content when it’s embedded into aTabPanein the hardware accelerated rendering mode on macOS. - The random black rectangles flickering inside
BrowserViewwhen it has been shown on Windows. - The random black and white rectangles flickering inside
BrowserViewinstead of a web page on Windows in off-screen mode. - Flickering on every repaint when Swing
BrowserViewis embedded into an AWT container on Windows in off-screen mode. - Unexpected Chromium termination with exit code 139 on Linux when closing
Engine. - Crash when typing text in an input field on a web page when Chromium traffic is disabled on Linux and Windows.
- Crash when loading
about:blankright after loading an invalid URL. - Crash when closing popup in hardware accelerated on Windows and Linux.
BrowserViewin the off-screen rendering mode not handling focus properly if a web page containsIFRAMEthat displays a web page with an input field that is hosted on another domain and the focus was requested during the page loading. In this case, when you clicked on the input field you could type into it, however, the cursor did not appear.- Wrong
DisplayIdwhen closing minimized SWTBrowserViewinside Eclipse RCP on Windows in the hardware accelerated rendering mode. - Wrong SWT
BrowserViewlocation insideShellon Linux in the hardware accelerated rendering mode. - Deadlock when closing
EnginefromBrowserClosed. - The
SetWindowDisplayAffinityfunction not able to be applied to the Java window with embeddedBrowserViewin the hardware accelerated rendering mode on Windows. - The keyboard focus staying inside Swing
BrowserViewafterTaborShift+Tabin hardware accelerated mode. - Freeze on
System.exit(0). - Failure to print a PDF document loaded in
IFRAME.
Download JxBrowser 7.11
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 @JxBrowser to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.
Subscribe to get notifications about the latest releases.