2023
- v7.36.3
- v7.36.2
- v7.36.1
- v7.36
- v7.35.2
- v7.35.1
- v7.35
- v7.34.1
- v7.34
- v7.33.2
- v7.33.1
- v7.33
- v7.32
- v7.31.1
- v7.31
- v7.30.3
- v7.30.2
- v7.30
2022
2021
2020
2019
2018
2017
2016
2015
- v6.0.1
- v6.0
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4
- v5.3
- v5.2.1
- v5.2
- v5.1
- v5.0
- v4.9.5
- v4.9.4
- v4.9.3
- v4.9.2
- v4.9.1
- v4.9
2014
2013
2012
2011
2010
2009
2008
2007
Posted on December 3, 2021
JxBrowser 7.21 has been released! We’ve extended API with new features, added important fixes and improvements.
What’s New
DOM Image Raw Bytes
Find all the images on a web page or a specific image and access its raw bytes using the new com.teamdev.jxbrowser.dom.ImageElement
interface:
document.findElementById("image").ifPresent(element -> {
if (element instanceof ImageElement) {
ImageElement image = (ImageElement) element;
Bitmap bitmap = image.contents();
Size size = bitmap.size();
byte[] pixels = bitmap.pixels();
}
});
It’s useful if you need to extract the images from a web page and store them on a local file system, RAM, or database.
DOM CustomEvent Detail
Listen to the custom DOM events and access their payload:
// Listen to the events of the given custom event type.
element.addEventListener(EventType.of("MyEvent"), event -> {
// The MyEvent event has been received.
if (event instanceof CustomEvent) {
CustomEvent customEvent = (CustomEvent) event;
JsObject payload = customEvent.detail();
}
}, false);
Quality Enhancements
- The upload POST data was corrupted because of some extra bytes.
- Drop data from dataTransfer was lost on macOS.
- Subfolders were treated as files when selecting a folder in the
OpenFolder
callback. BrowserView
was blank and threw “Failed to get native widget ID” exception in JavaFX.BrowserView
was blank and threw “Failed to detect the GTK version” exception in SWT in Linux.- Passing
null
orundefined
from JavaScript to Java resulted inIllegalArgumentException
. - Network events and callbacks
didn’t contain
sec-ch-ua
,sec-ch-ua-mobile
, andsec-ch-ua-platform
headers when a web page was loaded viaNavigation.loadUrl()
. - Chromium unexpectedly released
Browser
instance when reaching the memory limit. This is unwanted behavior for the library, and we disabled it.
Download
Follow @JxBrowserTeam on Twitter to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.