[Windows] Download dialog for application/zip (and any other mimetypes not listed in the registry) doesn't offer to open with the default application anymore
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: styb.styb, Assigned: Gijs)
References
(Regression, )
Details
(Keywords: regression)
Attachments
(2 files)
(deleted),
image/jpeg
|
Details | |
Bug 1609466 - offer 'open with' options even when Windows is clueless about the mimetype, r?bzbarsky
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
I set "Always ask" for all types of downloaded files.
When I click a link to download a ZIP file, the download dialog show the Browse button instead of the drop-down menu. This does not happen in the previous version of Firefox 71.
Actual results:
-
The Browser button is show for the following MIME type: application/zip.
-
The drop-down menu is shown only for the following MIME type: application/x-zip-compressed.
See attached Image-1.jpg
Comment 1•5 years ago
|
||
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
20200107212822
This does not happen in the previous version of Firefox 71.
Could you possibly find the exact regression range?
https://mozilla.github.io/mozregression/quickstart.html
I can reproduce this in Firefox 72.0.1, but when I tried finding the regression range, the result points to bug 1574372 which is marked as fixed in Firefox 73. That doesn't add up.
Comment 2•5 years ago
|
||
regression-window |
[Tracking Requested - why for this release]: UI broken, default application is not showing in helper dialog
I can reproduce the issue on Nightly74.0a1, 73.0b5 as well as 72.0.1 Windows10, but I cannot reproduce on 71.0.1.
STR
- Open https://ftp.mozilla.org/pub/firefox/nightly/2004/02/2004-02-10-08-trunk/
- Click MozillaFirebird-win32.zip
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=bcbb45f7d4f1b22fc74d2ee96b92c6f2233495aa&tochange=ed5828f8c8ed5d263859379762a585770e59b78b
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
another STR
- Open https://www.fosshub.com/SMPlayer.html
- Click on "SMPlayer 64-bit Portable"
Assignee | ||
Comment 4•5 years ago
|
||
The problem here is that Windows claims that .zip
has a mimetype of application/x-zip-compressed
rather than application/zip
, and this throws off our logic. Still digging to see how exactly this is breaking things and what our options are.
(In reply to Alice0775 White from comment #3)
another STR
- Open https://www.fosshub.com/SMPlayer.html
- Click on "SMPlayer 64-bit Portable"
The same for RAR file
- Open https://www.rarlab.com/themes.htm
- Click on any download link
I have encountered this issue for archive files such as zip, 7zip, rar, and not for other file types such as pdf, txt, jpg, mp3, mp4.
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to :Gijs (he/him) from comment #4)
The problem here is that Windows claims that
.zip
has a mimetype ofapplication/x-zip-compressed
rather thanapplication/zip
, and this throws off our logic. Still digging to see how exactly this is breaking things and what our options are.
That and there's no mime entry in the registry for application/zip
, so this call fails, so we enter this path and bail early from the function.
Previously, we would first check for an extension from the mimetype, use that if possible, and otherwise use the file extension as passed.
So the change from bug 1597985 will have caused this regression for any extension/mimetype combination where the Windows registry does not have extension information at all for the mimetype the server sends.
The problem is, that list is long and unknowable. The list of known mimetypes I'm seeing in my own Win10 registry is comparatively short. I count under 200 entries, whereas http://www.iana.org/assignments/media-types/media-types.xhtml has about 2500. Even obvious things like Microsoft's own Word/Powerpoint/Excel documents do not make an appearance (I don't have MS Office installed, but esp. for word docs, Wordpad/Write can open them -- and the extensions are in the registry, just not the mimetypes; unclear whether installing Office would add those mime types).
Assignee | ||
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
bugherder |
Assignee | ||
Comment 11•5 years ago
|
||
Comment on attachment 9121289 [details]
Bug 1609466 - offer 'open with' options even when Windows is clueless about the mimetype, r?bzbarsky
Beta/Release Uplift Approval Request
- User impact if declined: Broken downloads
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment 2
- List of other uplifts needed: n/a
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We're basically making the windows file handling code more relaxed about how it deals with gaps in the Windows Registry's list of file extensions and mimetypes.
- String changes made/needed: Nope
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Reproduced the initial issue on Firefox 72.0.1 and Firefox 73.0b5.
Verified fixed the issue on Windows 10 x64 and Windows 7 x64 using latest Nightly 74.0a1 (https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&selectedJob=285289873): the "Open with" options are correctly displayed for ZIP files (tested on https://www.nirsoft.net/utils/wirelessnetview.zip and https://ftp.mozilla.org/pub/firefox/nightly/2004/02/2004-02-10-08-trunk/), for png, jpg and pdf.
For .rar and .7z (https://www.rarlab.com/themes.htm / https://www.fosshub.com/SMPlayer.html), I still have "Browse" button instead of "Open with" options, but this is because my Windows Registry doesn't contain .rar and .7z.
Will verify it on 73 too when the fix is approved.
Assignee | ||
Comment 13•5 years ago
|
||
(In reply to Camelia Badau [:cbadau], Release Desktop QA from comment #12)
For .rar and .7z (https://www.rarlab.com/themes.htm / https://www.fosshub.com/SMPlayer.html), I still have "Browse" button instead of "Open with" options, but this is because my Windows Registry doesn't contain .rar and .7z.
Just to confirm, does this match what happens on 71, too?
Comment 14•5 years ago
|
||
(In reply to :Gijs (he/him) from comment #13)
(In reply to Camelia Badau [:cbadau], Release Desktop QA from comment #12)
For .rar and .7z (https://www.rarlab.com/themes.htm / https://www.fosshub.com/SMPlayer.html), I still have "Browse" button instead of "Open with" options, but this is because my Windows Registry doesn't contain .rar and .7z.
Just to confirm, does this match what happens on 71, too?
Yes, on Firefox 71.0 (20191202093317) it's the same behavior: "Browse" button is displayed instead of "Open with" options for .rar and .7z.
Comment 15•5 years ago
|
||
Comment on attachment 9121289 [details]
Bug 1609466 - offer 'open with' options even when Windows is clueless about the mimetype, r?bzbarsky
Fixes a downloading regression. Approved for 73.0b7.
Comment 16•5 years ago
|
||
bugherder uplift |
Comment 17•5 years ago
|
||
Verified fixed on Windows 10 x64 and Windows 7 x64 using Firefox 73 Beta 7: the "Open with" options are correctly displayed for ZIP files (tested on https://www.nirsoft.net/utils/wirelessnetview.zip and https://ftp.mozilla.org/pub/firefox/nightly/2004/02/2004-02-10-08-trunk/), for png, jpg and pdf.
Assignee | ||
Updated•4 years ago
|
Description
•