Unable to run JNLP file automatically (FF ESR 102.0)
Categories
(Firefox :: File Handling, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | affected |
People
(Reporter: pieter.breugelmans, Assigned: mkaply)
References
Details
Attachments
(4 files)
Steps to reproduce:
Browser: Firefox ESR 102.0
Download a file from a URL, for example a JNLP file (jnlp file extension).
Actual results:
Firefox always shows a dialog window that saves the file.
Expected results:
Firefox should present the "What should Firefox do with this file?" prompt so files can be opened with the associated program on the OS.
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Comment 1•4 years ago
|
||
Created this bug per the Filetype handlers policy (jnlp-files) conversation on the Mozilla Enterprise forum:
https://groups.google.com/a/mozilla.org/g/enterprise/c/lXkUSNYNvu4/m/nUI8Hhl_AwAJ
The download behavior by Firefox with the recent changes are documented here:
https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file
Per our testing, the conclusion is that setting "What should Firefox do with other files"? does not behave as expected. Even if set to 'Ask whether to open or save files', the prompt does not appear. In extension to that, the JNLP content type never gets registered under Applications.
Users should be able to run downloaded files (such as JNLP files) without user interaction. IT administrators must be able to configure Firefox ESR using browser policies for specific file types.
Related bugs:
Bug 1738916 Firefox asks for a file location when "always ask me where to save files" is enabled, even if the file is configured always to open in an external app
Bug 1576762 (New) Improve usability for JNLP and other executables
| Assignee | ||
Comment 2•4 years ago
|
||
So for 102, I implemented a policy to to stop the warning on running JNLP files, but this doesn't give us the exact same behavior we added for Firefox 91.
Firefox Firefox 91, you could actually launch JNLP as a helper.
I'm going to look into making the helper code use the policy as well.
| Assignee | ||
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
My testing brought this result with IcedTea-Web installed for JNLP-handling:
FF 91.11.0 esr:
Starting jnlp-files works fine with the string <"application/x-java-jnlp-file":{"action":0,"extensions":["jnlp"]}> in handlers.json
In the Configuration-Tab under "Applications" I see "Filetype/Open with: JNLP File/Open with javaws.exe (Default)"
FF 102.0 esr:
With the string 'application/x-java-jnlp-file":{"action":0,"extensions":["jnlp"]}' in handlers.json it does not work any more.
If I change the action for JNLP-File filetype to "Open with javaws.exe" (without 'Default') by selecting my installed javaws.exe via the "Other Application"-Menu item, JNLP-files are executed without interaction. The string in handlers.json looks like this:
<"application/x-java-jnlp-file":{"action":2,"extensions":["jnlp"],"handlers":[{"name":"javaws.exe","path":"C:\Program Files\IcedTeaWeb\WebStart\bin\javaws.exe"}]}>
| Reporter | ||
Comment 5•4 years ago
|
||
Thanks for acknowledging the issue @mkaply. As our enterprise customers use Firefox ESR with our software, we do go through a certification process to ensure a new Firefox ESR release works correctly with our software as it did with the previous Firefox ESR release (with or without additional browser configuration requirements). I can understand it may take a bit more time for you to conclude on the most suitable solution for this issue, though appreciate that we'll have enough time left to verify your solution and if needed, advise you on any further improvements that may be needed. Any chance that a first attempt to solve the issue at large would get included in Firefox ESR 102.1 (soft-freeze on 2022-07-21)?
| Assignee | ||
Comment 6•4 years ago
|
||
Any chance that a first attempt to solve the issue at large would get included in Firefox ESR 102.1 (soft-freeze on 2022-07-21)?
That's my hope. I'm working on the patch now. Worst case scenario, we go back to the old way for one more ESR.
| Assignee | ||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
| Reporter | ||
Comment 8•4 years ago
|
||
Just to get confirmation, I take it that the code changes did not made it in the most recent Firefox ESR 102.1.0 as the code changes require further improvements?
| Assignee | ||
Comment 9•4 years ago
|
||
(In reply to Pieter Breugelmans from comment #8)
Just to get confirmation, I take it that the code changes did not made it in the most recent Firefox ESR 102.1.0 as the code changes require further improvements?
Correct, sorry. I tried to get it in then. I'm working on finishing it up this week and it should go in.
Comment 10•3 years ago
|
||
Hi, any chance of a patch for Firefox ESR version 102.2.0? I can't imagine asking thousands of users to manually add "javaws.exe" to automatically open jnlp files...
Thanks in advance for your work
| Assignee | ||
Comment 11•3 years ago
|
||
It's in review right I'm hoping to get it in within a few days.
Updated•3 years ago
|
Comment 12•3 years ago
|
||
| Reporter | ||
Comment 13•3 years ago
|
||
Would it be possible for us to test the changes ahead of the Firefox ESR 102.2 release, just to confirm all works as intended? I understand that there are no nightly builds of Firefox ESR, but did want ask if there's any possibility to obtain e.g. an early build with your latest code changes included.
Comment 14•3 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 15•3 years ago
|
||
You can use Firefox nightly to test this feature.
https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly
Unfortunately the timing is such that it won't be in 102.2, but we're going to verify it against nightly and then it will be in the next ESR.
Mike
| Reporter | ||
Comment 16•3 years ago
|
||
Kindly confirm that "... in the next ESR" implies Firefox ESR 102.3 because we cannot tell our enterprise customers that they can no longer run JNLP files automatically from Firefox. Alternatively, as you has previously hinted, requesting you to reconsider the option to restore the behavior as it was with Firefox ESR 91.x.
For what its worth, tested today on Firefox nightly:
https://ftp.mozilla.org/pub/firefox/nightly/2022/08/2022-08-18-06-57-02-mozilla-central/firefox-105.0a1.en-US.win64.installer.exe
Name Firefox
Version 105.0a1
Build ID 20220818065702
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
OS Windows_NT 10.0 19044
Our dynamically generated JNLP file gets saved by Firefox without a file extension, and does not launch automatically despite the ExemptDomainFileTypePairsFromFileTypeDownloadWarnings policy being set.
| Assignee | ||
Comment 17•3 years ago
|
||
When you go to preferences, under the Handlers box, which option is checked, Save files or ask whether to open or save files?
IF save files is checked, can you check the other option and test the behavior?
If I can't figure this out in the next week, we will definitely switch to the other behavior for ESR 102.
| Assignee | ||
Comment 18•3 years ago
|
||
And yes, next ESR means 102.3. There will be a solution to this before we move everyone from 91 to 102.
| Reporter | ||
Comment 19•3 years ago
|
||
Appreciate your prompt response as always.
Changed the setting What should Nightly do with other files? --> Ask whether to open or save files.
The Opening ... dialog does appear with the option to Open with Java(TM) Web Launcher (default) and the checkbox to Do this automatically for files like this from now on.
Opening dialog: https://i.imgur.com/Osp7xep.png
Policy configuration: https://i.imgur.com/nO4RRni.png
Enabling the box to do it automatically from now on, yet Firefox does not remember the selected option upon subsequent downloads of JNLP files. The Opening frmservlet.jnlp dialog window keeps coming up.
| Assignee | ||
Comment 20•3 years ago
|
||
Does it do it for the same jnlp or only a different jnlp? What do you see for jnlp in the handlers section in preferences?
(I'm using notepad as my handler for jnlp and I only have the one JNLP file to test)
| Assignee | ||
Comment 21•3 years ago
|
||
I think I was able to recreate the behavior you're seeing.
I'm checking to see if it's a generic Firefox bug or a bug in my code.
| Assignee | ||
Comment 22•3 years ago
|
||
I'm reopening this ticket. I think I'm going to have to give up and just enable jnlp for ESR 102.
I found a case deep in our C++ code that checks for executable and that's where we're failing.
I'm going to back this change out for now.
Updated•3 years ago
|
| Assignee | ||
Comment 23•3 years ago
|
||
I opened bug 1785830 to just support JNLP on the ESR.
| Assignee | ||
Comment 24•3 years ago
|
||
The change to do the same thing as Firefox 91 made it into Firefox ESR 102.2
So the policy is no longer needed.
I'll revisit trying to implement the policy in a few weeks (but that would be for the next ESR next year).
Comment 25•1 year ago
|
||
Ok i am trying to be polite however ....
Simply put STOPPPPPP trying to decide what I want to run
I spent over 4 hours trying to get dell's poweredge 610 .jnlp file to allow to run
IT DOES NOT WORK
Give me an option to allow open this file and remember it
THERE IS NO OPTION TO ADD AN APPLICATION
USE THE WINDOWS APPS NOT MIMETYPES
PLEASE ADVISE HOW TO GET AROUND THIS, THERE ARE SEVERAL GOOGLED REFERENCES TO THIS ISSUE GOING ALL THE WAY BACK TO FF90
HANDLERS FILE DOES NOT WORK
ABOUT:CONFIG OPTIONS ARE IGNORED
| Assignee | ||
Comment 26•1 year ago
|
||
We support running JNLP files on the ESR only.
Running a JNLP is effectively the same as running an EXE, so we do not allow them to be run for regular users.
Comment 27•1 year ago
|
||
Comment 28•1 year ago
|
||
Description
•