gecko-dev/uriloader/exthandler
Toshihito Kikuchi 4d2777385a Bug 1588975 - Replace ShellExecuteExW with mozilla::ShellExecuteByExplorer. r=aklotz,asuth
The launcher process turns on the `PreferSystem32Images` mitigation policy for
the browser process.  Since the mitigation policy is inherited, a process launched
by the browser process also has `PreferSystem32Images`.  If an application which
does not support `PreferSystem32Images`, such as Skype for Business, is launched
via a hyperlink, a custom uri, or a downloaded file, it would fail to launch.

Bug 1567614 fixed this issue by introducing `mozilla::ShellExecuteByExplorer` to
`nsMIMEInfoWin::LoadUriInternal`.  This patch introduces
`mozilla::ShellExecuteByExplorer` to two more places.

1. xul!nsLocalFile::Launch
This is invoked when a user opens a file from the Download Library, or a user
opens a downloaded file with the default application without saving it.

2. xul!nsMIMEInfoWin::LaunchWithFile
This is invoked when a user opens a downloaded file with a custom application
(configured in about:preference) without saving it.

*Why does this patch change worker.js?*

The mochitest dom/tests/browser/browser_test_new_window_from_content.js failed
if it was executed after dom/serviceworkers/test/browser_download.js in the
same batch.  This was because browser_download.js launched Notepad to open
fake_download.bin.txt, preventing a new window from being opened in the
foreground in browser_test_new_window_from_content.js.

The test browser_download.js can verify downloaded data without opening an
associated application.  So this patch adds the content-type to the response
header in order not to open Notepad on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-11-14 19:47:29 +00:00
..
android Bug 1589327 - Remove some other various fennec-dependent code. r=snorp,botond 2019-10-18 18:49:49 +00:00
docs Bug 1595601: Add documentation for the external handler service. r=Gijs 2019-11-12 19:45:26 +00:00
mac Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
tests Bug 1586148 - fix web protocol handler behaviour under fission, r=mccr8 2019-10-16 14:56:23 +00:00
uikit Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj 2019-03-27 22:49:33 +00:00
unix Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
win Bug 1588975 - Replace ShellExecuteExW with mozilla::ShellExecuteByExplorer. r=aklotz,asuth 2019-11-14 19:47:29 +00:00
ContentHandlerService.cpp Bug 1570369 - Part 9: Use IPDL refcounted for PHandlerService, r=smaug 2019-08-08 16:46:42 +00:00
ContentHandlerService.h Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
DBusHelpers.h
ExternalHelperAppChild.cpp Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
ExternalHelperAppChild.h Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
ExternalHelperAppParent.cpp Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
ExternalHelperAppParent.h Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
HandlerService.js Bug 1561435 - Format uriloader/, a=automatic-formatting 2019-07-05 11:18:48 +02:00
HandlerService.manifest
HandlerServiceChild.h Bug 1570369 - Part 6: Use IPDL refcounted for PExternalHelperApp, r=smaug 2019-08-08 16:46:35 +00:00
HandlerServiceParent.cpp Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
HandlerServiceParent.h Bug 1570369 - Part 6: Use IPDL refcounted for PExternalHelperApp, r=smaug 2019-08-08 16:46:35 +00:00
PExternalHelperApp.ipdl Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
PHandlerService.ipdl Bug 1570369 - Part 9: Use IPDL refcounted for PHandlerService, r=smaug 2019-08-08 16:46:42 +00:00
WebHandlerApp.jsm Bug 1561435 - Format uriloader/, a=automatic-formatting 2019-07-05 11:18:48 +02:00
components.conf
moz.build Bug 1595601: Add documentation for the external handler service. r=Gijs 2019-11-12 19:45:26 +00:00
nsCExternalHandlerService.idl
nsContentHandlerApp.h
nsDBusHandlerApp.cpp Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsDBusHandlerApp.h
nsExternalHelperAppService.cpp Bug 1589895 - Add default JavaScript MIME type for .mjs used for ES modules. r=bzbarsky 2019-11-13 19:12:02 +00:00
nsExternalHelperAppService.h Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
nsExternalProtocolHandler.cpp Backed out 6 changesets (bug 1552176) for causing Hazard bustages CLOSED TREE 2019-11-11 12:11:36 +02:00
nsExternalProtocolHandler.h
nsIContentDispatchChooser.idl
nsIExternalHelperAppService.idl Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
nsIExternalProtocolService.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIExternalURLHandlerService.idl
nsIHandlerService.idl Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj 2019-03-27 22:49:33 +00:00
nsIHelperAppLauncherDialog.idl Bug 1568510. Pass an nsIInterfaceRequestor, not nsISupports, as context to helper app dialog methods. r=mossop 2019-07-24 15:44:34 +00:00
nsISharingHandlerApp.idl
nsLocalHandlerApp.cpp Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsLocalHandlerApp.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsMIMEInfoChild.h Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj 2019-03-27 22:49:33 +00:00
nsMIMEInfoImpl.cpp
nsMIMEInfoImpl.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsOSHelperAppServiceChild.cpp Bug 1589082 - make it clear we don't implement getProtocolHandlerInfoFromOS in the child service on mac, r=haik 2019-11-08 16:05:26 +00:00
nsOSHelperAppServiceChild.h Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj 2019-03-27 22:49:33 +00:00