Posted on October 5, 2020
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
BrowserView
re-parenting is properly handled in SWT in the hardware accelerated rendering mode now. - The library detects when parent
Composite
ofBrowserView
has been shown/hidden in Eclipse RCP in the hardware accelerated rendering mode. - All references to the Swing classes in the JavaFX
BrowserView
implementation have been removed. - The Hunspell dictionaries on Windows and Linux will not be downloaded if spell checking is disabled.
Fixed issues
BrowserView
in Eclipse tabs overlapping other tabs in the hardware accelerated rendering mode on Windows.- The
RequestCompleted
andRequestDestroyed
events 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
@JsAccessible
called twice when closingBrowser
. - The SWT Print Preview dialog not displayed in the off-screen rendering mode on macOS.
- The
IndexOutOfBoundsException
error when closing popupBrowser
through thewindow.close()
JavaScript function. - The
IllegalStateException
error inBrowserView
during closing itsBrowser
instance in the hardware accelerated rendering mode. - JavaFX
BrowserView
overlapping content when it’s embedded into aTabPane
in the hardware accelerated rendering mode on macOS. - The random black rectangles flickering inside
BrowserView
when it has been shown on Windows. - The random black and white rectangles flickering inside
BrowserView
instead of a web page on Windows in off-screen mode. - Flickering on every repaint when Swing
BrowserView
is 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:blank
right after loading an invalid URL. - Crash when closing popup in hardware accelerated on Windows and Linux.
BrowserView
in the off-screen rendering mode not handling focus properly if a web page containsIFRAME
that 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
DisplayId
when closing minimized SWTBrowserView
inside Eclipse RCP on Windows in the hardware accelerated rendering mode. - Wrong SWT
BrowserView
location insideShell
on Linux in the hardware accelerated rendering mode. - Deadlock when closing
Engine
fromBrowserClosed
. - The
SetWindowDisplayAffinity
function not able to be applied to the Java window with embeddedBrowserView
in the hardware accelerated rendering mode on Windows. - The keyboard focus staying inside Swing
BrowserView
afterTab
orShift+Tab
in 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 @JxBrowserTeam to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.