gecko-dev/uriloader
Gijs Kruitbosch 94f489a33f Bug 1609466 - offer 'open with' options even when Windows is clueless about the mimetype, r=bzbarsky
We currently fail to offer 'open with' options for application/zip mimetype
.zip files, because out of the box, the Windows registry does not contain
mimetype entries for application/zip. In fact, it contains comparatively
few entries, and right now we bail out with an empty mime info object if
we cannot find the server-provided mimetype in the registry (or cannot
find an associated extension for that mimetype).

Prior to the changes from bug 1597985, we would first try to find a handler
based on the default extension for the mimetype, and used the file extension
if that failed.

The changes in this commit will cause us to fetch the default file extension
for the mimetype, but continue with the provided extension if no mimetype
information is available, restoring functionality in the case where Windows
has no mimetype information.

Differential Revision: https://phabricator.services.mozilla.com/D60139

--HG--
extra : moz-landing-system : lando
2020-01-16 17:41:25 +00:00
..
base Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag 2020-01-06 21:58:48 +00:00
docs Bug 1599277 - fix docs paths for uriloader/exthandler, r=ahal 2019-11-26 15:02:00 +00:00
exthandler Bug 1609466 - offer 'open with' options even when Windows is clueless about the mimetype, r=bzbarsky 2020-01-16 17:41:25 +00:00
prefetch Bug 1585582 - Ensure AppCache is disabled in all cases. r=baku 2019-12-20 04:34:27 +00:00
moz.build Bug 1595601: Add documentation for the external handler service. r=Gijs 2019-11-12 19:45:26 +00:00