List icon Contents

Posted on March 29, 2024

JxBrowser 8.0.0 EAP

This page contains a complete release history for the JxBrowser 8.0.0 EAP builds in reverse chronological order.

To add the latest 8.0.0 EAP build dependencies to your project, add the following to your project configuration:

plugins {
    id("com.teamdev.jxbrowser") version "1.1.0"
}

jxbrowser {
    // The latest JxBrowser EAP version.
    version = "8.0.0-eap.4"

    // Adds a repository with JxBrowser EAP builds to the project.
    includePreviewBuilds()
}

dependencies {
    // Adds a dependency for integration with the Compose UI toolkit.
    implementation(jxbrowser.compose)
    // Adds a dependency for integration with the SWT UI toolkit.
    implementation(jxbrowser.swt)
    // Adds a dependency for integration with the Swing UI toolkit.
    implementation(jxbrowser.swing)
    // Adds a dependency for integration with the JavaFX UI toolkit.
    implementation(jxbrowser.javafx)

    // Detects the current platform and adds the corresponding Chromium binaries.
    implementation(jxbrowser.currentPlatform)
}
<repositories>
    <!-- Adds a repository with JxBrowser preview builds to the project. -->
    <repository>
        <id>teamdev-preview</id>
        <url>https://europe-maven.pkg.dev/jxbrowser/eaps</url>
    </repository>
</repositories>

<dependencies>
    <!-- Adds dependencies to the artifacts with Chromium binaries. -->
    <dependency>
        <groupId>com.teamdev.jxbrowser</groupId>
        <artifactId>jxbrowser-cross-platform</artifactId>
        <version>8.0.0-eap.4</version>
        <type>pom</type>
    </dependency>

    <!-- Adds a dependency for integration with the Swing UI toolkit. -->
    <dependency>
        <groupId>com.teamdev.jxbrowser</groupId>
        <artifactId>jxbrowser-swing</artifactId>
        <version>8.0.0-eap.4</version>
        <!-- 
           Other available options are: 
             - jxbrowser-compose
             - jxbrowser-javafx
             - jxbrowser-swt
        -->
    </dependency>
</dependencies>

To learn more about the enhancements planned for this major release, please visit JxBrowser Roadmap.

v8.0.0-eap.4

Chrome extensions

JxBrowser now provides the Extensions API that allows you to install, update, uninstall, and work with Chrome extensions. It opens up a wide range of possibilities for integrating Chrome extensions into your Java desktop applications.

With the Extensions API, you can:

  • Get a list of installed extensions;
  • Manually install Chrome extensions from Chrome Web Store;
  • Control which extensions can be manually installed by users;
  • Programmatically install Chrome extensions from CRX files;
  • Programmatically uninstall extensions that were installed from Chrome Web Store or CRX files;
  • Control which extensions can be manually uninstalled by users;
  • Get notifications when an extension is installed, updated, or uninstalled;
  • Display extension popups;
  • Simulate extension icon clicks and more.

JxBrowser Chrome Web Store

You can read more about how to work with Chrome extensions in the Extensions guide.

Compose Desktop

We have added default implementations for the following dialogs and popups:

  • The open file dialog;
  • The save file dialog;
  • The dialog to select a folder;
  • The default implementation for extension popup;
  • The default implementation for extension action popup;
  • The default implementation for suggestion popup that appears when you type in an input field and there are autofill suggestions.

Chromium 126.0.6478.57

We upgraded Chromium to a newer version, which introduces multiple security fixes that prevent a remote attacker from potentially exploiting the heap corruption via a crafted HTML page, including:

For the complete list of Chromium fixes and improvements in 126.0.6478.57 please visit the product blog posts for the following versions:

v8.0.0-eap.3

Compose Desktop

We have added default implementations for various dialogs and menus, so you don’t have to:

  • A spell check context menu;
  • The JavaScript alert, prompt, and confirm dialogs;
  • The dialog before the browser unloads;
  • The dialogs to save and update credit cards;
  • The dialog for selecting a client certificate;
  • The dialogs to save and update user profiles and credit cards;
  • The dialog when the browser wants to open an external application.

Also, we will show the following Chromium’s dialogs:

  • A color picker dialog;
  • A print preview dialog;
  • A dialog to select a screen sharing source.

No more optionals in Kotlin

In Java API, we have a lot of Optional return values. This is unnecessary for Kotlin developers, so we extended API with null-safe methods:

// Before:
val input: Optional<Element> = element.findElementById("my-input")

// After:
val input: Element? = element.findById("my-input")

Breaking changes

We extracted operations with attributes from Element to a map-like ElementAttributes. For example, here’s how to assign a value to an attribute before and now:

// Before:
element.putAttribute("src", "https://example.com/image.png");

// After:
element.attributes().put("src", "https://example.com/image.png");

In Kotlin, you can access attributes via indexing operator:

element.attributes()["src"] = "https://example.com/image.png"

To see all breaking changes, visit the guide about migration from JxBrowser 7 to 8.

Chromium 125.0.6422.113

We upgraded Chromium to a newer version, which introduces multiple security fixes. Among them, a fix for a vulnerability that have known exploits:

For the complete list of Chromium fixes and improvements in 125.0.6422.113 please visit the product blog posts for the following versions:

v8.0.0-eap.2

Kotlin DSL

Kotlin API for assembling Engine instance has been extended to allow configuration of all options available for Java EngineOptions.Builder. The following code demonstrates how to create an Engine instance with the specified options using the Kotlin DSL:

val engine = Engine(RenderingMode.HARDWARE_ACCELERATED) {
    options {
        passwordStore = PasswordStore.BASIC
        proprietaryFeatures = setOf(ProprietaryFeature.H_264)
        switches = listOf("--chromium-switch1", "--chromium-switch2")
    }
}

Kotlin API for BrowserSettings now provides variable properties for declarative configuration. It allows you to configure browser settings in a more concise and readable way. The following code demonstrates how to configure browser settings using the Kotlin DSL:

browser.settings.apply {
    javascriptEnabled = false
    defaultFontSize = FontSizeInPixels.of(12)
    webRtcIpHandlingPolicy = DISABLE_NON_PROXIED_UDP
}

Compose Desktop

We improved the integration with the Compose Desktop UI toolkit. JxBrowser now supports IME (Input Method Editor) and displays popup windows by default.

JxBrowser Compose Desktop IME

Chromium 123.0.6312.124

We upgraded Chromium to a newer version, which introduces multiple security fixes that prevent a remote attacker who had compromised the GPU process from potentially perform a sandbox escape via specific UI gestures, potentially exploit heap corruption via a crafted HTML page, including:

For the complete list of Chromium fixes and improvements in 123.0.6312.124 please visit the product blog posts for the following versions:

v8.0.0-eap.1

This is the first EAP build of the next major version of JxBrowser. In this build, we introduce the following new features:

Java 17

Java 17 is the minimum required JVM version for JxBrowser 8.0.0.

Kotlin DSL

Now, you can write more concise and readable Kotlin code when working with JxBrowser API thanks to the Kotlin DSL.

To add the Kotlin DSL to your project, add the following to your project configuration:

dependencies {
    // Adds a dependency to the Kotlin DSL for working with JxBrowser API.
    implementation(jxbrowser.kotlin)
}
<!-- Adds a dependency to the Kotlin DSL for working with JxBrowser API. -->
<dependency>
    <groupId>com.teamdev.jxbrowser</groupId>
    <artifactId>jxbrowser-kotlin</artifactId>
    <version>[8.0.0-eap,]</version>
</dependency>

Here is an example of how you can use the Kotlin DSL to create and configure an Engine instance:

val engine = Engine(RenderingMode.HARDWARE_ACCELERATED) {
    options {
        license = JxBrowserLicense("your_license_key")
        language = Language.GERMAN
        remoteDebuggingPort = 9222
        schemes {
            add(Scheme.JAR, InterceptJarRequestCallback())
        }
    }
}
val browser = engine.newBrowser()

Compose Desktop

We added support of one more Java UI toolkit — Compose Desktop. Now, you can embed JxBrowser BrowserView into Compose Desktop applications and build modern cross-platform desktop applications with a modern UI toolkit.

To add the JxBrowser Compose Desktop dependency to your project, add the following to your project configuration:

dependencies {
    // Adds a dependency for integration with the Compose UI toolkit.
    implementation(jxbrowser.compose)
}
<!-- Adds a dependency for integration with the Compose UI toolkit. -->
<dependency>
    <groupId>com.teamdev.jxbrowser</groupId>
    <artifactId>jxbrowser-compose</artifactId>
    <version>[8.0.0-eap,]</version>
</dependency>

Here is an example of how you can embed JxBrowser @Composable BrowserView component into a Compose Desktop application:

fun main() = singleWindowApplication {
    val engine = remember { createEngine() }
    val browser = remember { engine.newBrowser() }
    BrowserView(browser)
    DisposableEffect(Unit) {
        browser.navigation.loadUrl("google.com")
        onDispose {
            engine.close()
        }
    }
}

private fun createEngine() = Engine(RenderingMode.HARDWARE_ACCELERATED) {
    options {
        license = JxBrowserLicense("your_license_key")
    }
}
Go Top