gecko-dev/dom/serviceworkers
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
..
test Bug 1588975 - Replace ShellExecuteExW with mozilla::ShellExecuteByExplorer. r=aklotz,asuth 2019-11-14 19:47:29 +00:00
FetchEventOpChild.cpp Bug 1593162 - Remove the expired telemetry probes added in bug 1127552; r=edgar 2019-11-01 13:43:15 +00:00
FetchEventOpChild.h Bug 1578919 - Don't allow AutoIPCStream to outlive its IPCStream r=asuth 2019-10-11 23:22:31 +00:00
FetchEventOpParent.cpp Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
FetchEventOpParent.h Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
FetchEventOpProxyChild.cpp Bug 1231213 - Implement ServiceWorkerOp and its subclasses. r=asuth 2019-08-15 17:27:08 +00:00
FetchEventOpProxyChild.h Bug 1231213 - Implement ServiceWorkerOp and its subclasses. r=asuth 2019-08-15 17:27:08 +00:00
FetchEventOpProxyParent.cpp Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
FetchEventOpProxyParent.h Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
IPCServiceWorkerDescriptor.ipdlh Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin 2019-03-15 12:55:10 +00:00
IPCServiceWorkerRegistrationDescriptor.ipdlh Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin 2019-03-15 12:55:10 +00:00
PFetchEventOp.ipdl Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
PFetchEventOpProxy.ipdl Bug 1231213 - Implement PFetchEventOp(Proxy) IPDL protocols and FetchEventOp(Proxy){Parent,Child}. r=asuth 2019-08-15 17:27:07 +00:00
PServiceWorker.ipdl
PServiceWorkerContainer.ipdl
PServiceWorkerManager.ipdl
PServiceWorkerRegistration.ipdl Bug 1510809 - Fire updatefound correctly for SWC.register r=asuth 2018-11-29 23:06:32 +00:00
PServiceWorkerUpdater.ipdl
RemoteServiceWorkerContainerImpl.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 4 - IPCWorkerRef in ServiceWorkerContainerChild, r=asuth 2019-07-12 11:16:15 +00:00
RemoteServiceWorkerContainerImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
RemoteServiceWorkerImpl.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 6 - IPCWorkerRef in ServiceWorkerChild, r=asuth 2019-07-12 11:16:52 +00:00
RemoteServiceWorkerImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
RemoteServiceWorkerRegistrationImpl.cpp Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
RemoteServiceWorkerRegistrationImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorker.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
ServiceWorker.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
ServiceWorkerActors.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerActors.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerChild.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 6 - IPCWorkerRef in ServiceWorkerChild, r=asuth 2019-07-12 11:16:52 +00:00
ServiceWorkerChild.h Bug 1559919 - Finish the WorkerHolder cleanup - part 6 - IPCWorkerRef in ServiceWorkerChild, r=asuth 2019-07-12 11:16:52 +00:00
ServiceWorkerCloneData.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerCloneData.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerContainer.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
ServiceWorkerContainer.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
ServiceWorkerContainerChild.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 4 - IPCWorkerRef in ServiceWorkerContainerChild, r=asuth 2019-07-12 11:16:15 +00:00
ServiceWorkerContainerChild.h Bug 1559919 - Finish the WorkerHolder cleanup - part 4 - IPCWorkerRef in ServiceWorkerContainerChild, r=asuth 2019-07-12 11:16:15 +00:00
ServiceWorkerContainerImpl.cpp Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
ServiceWorkerContainerImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerContainerParent.cpp Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
ServiceWorkerContainerParent.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerContainerProxy.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerContainerProxy.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerDescriptor.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerDescriptor.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerEvents.cpp Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar 2019-10-17 23:40:57 +00:00
ServiceWorkerEvents.h Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug 2019-10-21 05:33:33 +00:00
ServiceWorkerIPCUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerImpl.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerInfo.cpp Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar 2019-10-23 03:54:39 +00:00
ServiceWorkerInfo.h Bug 1552945 - Allow a WorkerPrivate's creator to set its ID. r=asuth 2019-08-20 15:20:40 +00:00
ServiceWorkerInterceptController.cpp Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
ServiceWorkerInterceptController.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerJob.cpp Bug 1581315 part 3. Add MOZ_MUST_RETURN_FROM_CALLER_IF_THIS_IS_ARG to more ErrorResult methods. r=smaug 2019-09-20 02:19:18 +00:00
ServiceWorkerJob.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerJobQueue.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerJobQueue.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerManager.cpp Backed out 6 changesets (bug 1552176) for causing Hazard bustages CLOSED TREE 2019-11-11 12:11:36 +02:00
ServiceWorkerManager.h Bug 1591101 - bookkeep orphaned registrations r=asuth 2019-10-30 17:12:10 +00:00
ServiceWorkerManagerChild.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerManagerChild.h Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj 2019-02-06 15:58:43 +00:00
ServiceWorkerManagerParent.cpp Bug 1589708 - Restore propagateUnregister as API to wipe registrations. r=perry 2019-10-22 01:48:37 +00:00
ServiceWorkerManagerParent.h Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj 2019-02-06 15:58:43 +00:00
ServiceWorkerManagerService.cpp Bug 1589708 - Restore propagateUnregister as API to wipe registrations. r=perry 2019-10-22 01:48:37 +00:00
ServiceWorkerManagerService.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerOp.cpp Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar 2019-10-17 23:40:57 +00:00
ServiceWorkerOp.h Bug 1231213 - Implement ServiceWorkerOp and its subclasses. r=asuth 2019-08-15 17:27:08 +00:00
ServiceWorkerOpArgs.ipdlh Bug 1231213 - Implement ServiceWorkerOp{Args,Promise,Result}, FetchEventRespondWith{Promise,Result}, and IPCFetchEventRespondWithResult. r=asuth 2019-08-15 17:26:22 +00:00
ServiceWorkerOpPromise.h Bug 1231213 - Implement ServiceWorkerOp{Args,Promise,Result}, FetchEventRespondWith{Promise,Result}, and IPCFetchEventRespondWithResult. r=asuth 2019-08-15 17:26:22 +00:00
ServiceWorkerParent.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerParent.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerPrivate.cpp Backed out 4 changesets (bug 1563607) for causing hunks failed when backout Bug 1592616 on a CLOSED TREE 2019-11-06 22:56:02 +02:00
ServiceWorkerPrivate.h Bug 1591101 - bookkeep orphaned registrations r=asuth 2019-10-30 17:12:10 +00:00
ServiceWorkerPrivateImpl.cpp Bug 1592699 - Fix test_serviceworker_lifetime.html r=asuth 2019-10-30 17:23:53 +00:00
ServiceWorkerPrivateImpl.h Bug 1578919 - Don't allow AutoIPCStream to outlive its IPCStream r=asuth 2019-10-11 23:22:31 +00:00
ServiceWorkerProxy.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerProxy.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerRegisterJob.cpp Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerRegisterJob.h Bug 1527000 - Stop passing a null or empty nsILoadGroup to ServiceWorker CompareNetwork, r=asuth 2019-02-15 04:56:12 +00:00
ServiceWorkerRegistrar.cpp Bug 965637: Move CSP from Principal into Client, part 2: worker changes. r=baku 2019-05-21 23:14:50 +00:00
ServiceWorkerRegistrar.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerRegistrarTypes.ipdlh
ServiceWorkerRegistration.cpp Bug 1587794 - Do not assume global exists. r=perry 2019-10-17 22:52:35 +00:00
ServiceWorkerRegistration.h Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerRegistrationChild.cpp Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth 2019-08-15 17:25:44 +00:00
ServiceWorkerRegistrationChild.h Bug 1559919 - Finish the WorkerHolder cleanup - part 5 - IPCWorkerRef in ServiceWorkerRegistrationChild, r=asuth 2019-07-12 11:16:34 +00:00
ServiceWorkerRegistrationDescriptor.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-21 14:13:44 +00:00
ServiceWorkerRegistrationDescriptor.h Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin 2019-03-15 12:55:10 +00:00
ServiceWorkerRegistrationImpl.cpp Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerRegistrationImpl.h Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerRegistrationInfo.cpp Bug 1591101 - bookkeep orphaned registrations r=asuth 2019-10-30 17:12:10 +00:00
ServiceWorkerRegistrationInfo.h Bug 1581187 - only shutdown remote Service Workers on browser shutdown r=asuth 2019-10-03 09:58:46 +00:00
ServiceWorkerRegistrationListener.h Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerRegistrationParent.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerRegistrationParent.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerRegistrationProxy.cpp Bug 1231213 - Allow the delayed ServiceWorkerRegistration.update() mechanism to handle multiple simultaneous requests without timing out. r=asuth 2019-08-15 17:27:44 +00:00
ServiceWorkerRegistrationProxy.h Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerScriptCache.cpp Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
ServiceWorkerScriptCache.h Bug 1531263 - Wrong prototype for Compare() function in ServiceWorkerScriptCache, r=asuth 2019-02-28 18:57:46 +00:00
ServiceWorkerShutdownBlocker.cpp Bug 1231213 - Implement ServiceWorkerShutdownBlocker. r=asuth 2019-08-15 17:26:29 +00:00
ServiceWorkerShutdownBlocker.h Bug 1231213 - Implement ServiceWorkerShutdownBlocker. r=asuth 2019-08-15 17:26:29 +00:00
ServiceWorkerUnregisterCallback.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUnregisterCallback.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUnregisterJob.cpp Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerUnregisterJob.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUpdateJob.cpp Bug 1557244 - Disallow resurrection of unregistered ServiceWorkerRegistrations r=asuth 2019-07-26 18:41:48 +00:00
ServiceWorkerUpdateJob.h Bug 1527000 - Stop passing a null or empty nsILoadGroup to ServiceWorker CompareNetwork, r=asuth 2019-02-15 04:56:12 +00:00
ServiceWorkerUpdaterChild.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUpdaterChild.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUpdaterParent.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUpdaterParent.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ServiceWorkerUtils.cpp Backed out 2 changesets (bug 1558915) for causing bustages. CLOSED TREE 2019-08-02 12:17:42 +03:00
ServiceWorkerUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
moz.build Bug 1231213 - Implement ServiceWorkerPrivateImpl to dispatch operations to content processes and respond to their results. r=asuth 2019-08-15 17:27:23 +00:00