2024
- v7.41.4
- v8.1.0
- v8.0.0
- v7.41.3
- v7.41.2
- v7.41.1
- v7.41.0
- v7.40.0
- v7.39.2
- v7.39.1
- v7.39.0
- v7.38.2
- v7.38.1
- v7.38.0
- v7.37.2
- v7.37.1
2023
- v7.37.0
- 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
2014
2013
2012
2011
2010
2009
2008
2007
Posted on October 5, 2017
JxBrowser 6.16
JxBrowser 6.16 features an extended DOM API, the ability to enable and disable form autofill suggestions, and a way to provide a custom HTTP status code. This version also supports two new macOS and Ubuntu platforms.
macOS 10.13 High Sierra
JxBrowser 6.16 now officially supports macOS 10.13 High Sierra. The tests in this OS confirmed all the library’s functions to work as expected.
Ubuntu 17.04 Desktop
We have also added support of Ubuntu 17.04 Desktop. All you need to do to run JxBrowser on Ubuntu 17.04 is to install
the missing libgconf-2.so.4
system library required by Chromium 60, which is not installed in Ubuntu 17.04 by default.
The Ubuntu package for this library is libgconf-2-4
:
sudo apt-get install libgconf-2-4
DOMNode.compareDocumentPosition()
The DOMNode.compareDocumentPosition()
method allows you to compare the position of the current node against another
node in the DOM tree:
browser.addLoadListener(new LoadAdapter() {
@Override
public void onFinishLoadingFrame(FinishLoadingEvent event) {
if (event.isMainFrame()) {
DOMDocument document = event.getBrowser().getDocument();
DOMElement sourceNode = document.findElement(By.id("div1"));
DOMElement targetNode = document.findElement(By.id("div2"));
DOMNodePosition targetNodePosition = sourceNode.compareDocumentPosition(targetNode);
System.out.println(targetNodePosition); // FOLLOWING
}
}
});
browser.loadHTML("<html>"
+ "<body>"
+ "<div id='div1'></div>"
+ "<div id='div2'></div>"
+ "</body>"
+ "</html>");
DOMDocument.getBaseURI()
The DOMDocument.getBaseURI()
method returns the base URI of the current document:
browser.addLoadListener(new LoadAdapter() {
@Override
public void onFinishLoadingFrame(FinishLoadingEvent event) {
if (event.isMainFrame()) {
DOMDocument document = event.getBrowser().getDocument();
String baseURI = document.getBaseURI();
System.out.println(baseURI); // https://teamdev.com/
}
}
});
browser.loadHTML("<html>"
+ "<head>"
+ "<base href='https://teamdev.com/'>"
+ "</head>"
+ "</html>");
Enable/disable form autofill suggestions
Now you can enable/disable showing a popup with form autofill suggestions as simple as:
browser.getContext().getAutofillService().setEnabled(false);
Custom HTTP status code
It is now possible to provide a custom HTTP status code with a response that you return from ProtocolHandler
:
URLResponse response = new URLResponse();
response.setStatus(HttpStatus.from(111));
Improvements
- The documentation for the print options was extended with the information about the settings ignored when printing to PDF.
Fixed issues
- The issue with the binary files validation when JxBrowser is being run twice at the same time.
- Native crash on macOS with a case-sensitive file system when using certain locales, e.g. zh_cn.
- Parsing X509 certificates on macOS.
NoClassDefFoundError
in an OSGi environment.- The issue with updating browser preferences that prevents input events from being fired.
Write us at customer-care@teamdev.com to download JxBrowser 6.16.
Follow @JxBrowserTeam 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.