<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Calibri">Hello,</font></p>
<p><font face="Calibri">when updating our application to the latest
JavaFX 25.0.2 patch, we noticed a behavioural change when
opening URIs with HostServices::showDocument.</font></p>
<p><font face="Calibri">* Scenario: App wants to show the user a
local file location, i.e. "C:\some\path" by constructing a URI
and open the URI.<br>
* Call in JavaFX:</font><font face="Calibri"> hostService.showDocument(<a class="moz-txt-link-rfc2396E" href="file:///C:/some/path">"file:///C:/some/path"</a>)<br>
* Before: Windows File Explorer opened, showing the targeted
resource<br>
* After update to version 25.0.2: Internet browser opens, doing
something with the URI (download file, show directory, etc)</font></p>
<p><font face="Calibri">Also macOS is affected by this, while on
Linux the behaviour is the old one.</font></p>
<p><font face="Calibri"><br>
</font></p>
<p><font face="Calibri">I think the PR
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/commit/fb60335eca66be80ad4ab9b0b11d96214f194117#diff-f12d806d18f22eb9d23118c40d6e26fb784096681107d780f5a9d7305b4980fe">https://github.com/openjdk/jfx/commit/fb60335eca66be80ad4ab9b0b11d96214f194117#diff-f12d806d18f22eb9d23118c40d6e26fb784096681107d780f5a9d7305b4980fe</a>
has caused it.</font></p>
<p><font face="Calibri">The documentation is a not clear about the
HostServices::showDocument
(<a class="moz-txt-link-freetext" href="https://openjfx.io/javadoc/25/javafx.graphics/javafx/application/HostServices.html">https://openjfx.io/javadoc/25/javafx.graphics/javafx/application/HostServices.html</a>):<br>
> Opens the specified URI in a new browser window or tab. The
determination of whether it is a new browser window or a tab in
an existing browser window will be made by the browser
preferences. Note that this will respect the pop-up blocker
settings of the default browser; it will not try to circumvent
them.<br>
<br>
Is a "browser" an internet browser. Or also a file browser?
Interpreting "browser" as internet OR file browser, the
before-update behaviour was as expected.</font></p>
<p>Anyways, for a patch version this is either a bug or this should
be noted in the release notes and the documentation updated.</p>
<p>Kind regards</p>
<pre class="moz-signature" cols="72">--
Armin Schrenk
Desktop Team Lead and People Operations
+49 15785160554
Skymatic GmbH, Am Hauptbahnhof 6, 53111 Bonn
Sitz der Gesellschaft: Bonn; Amtsgericht Bonn, HRB 22635
Geschäftsführer: Tobias Hagemann, Sebastian Stenzel</pre>
</body>
</html>