In this migration guide we describe an API change between 7.30.3 and 7.31

Remote Debugging Port

In JxBrowser 7.31, if you’re using the remote debugging port, you will need to add remote-allow-origins switch:

7.30.3 and earlier:

Engine engine = Engine.newInstance(EngineOptions.newBuilder(...)
        .remoteDebuggingPort(9222)
        .build());
val engine = Engine.newInstance(EngineOptions.newBuilder(...)
        .remoteDebuggingPort(9222)
        .build())

7.31:

Engine engine = Engine.newInstance(EngineOptions.newBuilder(...)
        .addSwitch("--remote-allow-origins=http://localhost:9222")
        .remoteDebuggingPort(9222)
        .build());
val engine = Engine.newInstance(EngineOptions.newBuilder(...)
        .addSwitch("--remote-allow-origins=http://localhost:9222")
        .remoteDebuggingPort(9222)
        .build())

This is an intentional change in Chromium 111. More details in Issue 1422444.

Go Top