gecko-dev/dom/serviceworkers
Luca Greco 0995284f7d Bug 1638097 - ServiceWorkerManager should not store registration related to temporary addons. r=asuth
This patch include a small change to ServiceWorkerManager::StoreRegistration which does early exist
and not store the registration on disk if:
- the principal is from a WebExtension
- the addon is not enabled (or was already uninstalled) by the time we got to store the registration
- the addon is temporarily installed

At the moment it should not happen, but if ServiceWorkerManager::StoreRegistration was reached too late
for some reason and the registration was meant to be stored, the service worker would still be registered
again when the addon is started again on the next browser startup and stored on disk if it was meant to.

Depends on D119529

Differential Revision: https://phabricator.services.mozilla.com/D119530
2021-07-14 14:13:00 +00:00
..
test Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang 2021-07-12 21:10:26 +00:00
FetchEventOpChild.cpp Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang 2021-07-12 21:10:26 +00:00
FetchEventOpChild.h Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang 2021-07-12 21:10:26 +00:00
FetchEventOpParent.cpp
FetchEventOpParent.h
FetchEventOpProxyChild.cpp
FetchEventOpProxyChild.h
FetchEventOpProxyParent.cpp
FetchEventOpProxyParent.h
IPCNavigationPreloadState.ipdlh Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
IPCServiceWorkerDescriptor.ipdlh Bug 1689147 - Part 5: Change comparable to an extended attribute, r=mccr8 2021-02-09 16:50:23 +00:00
IPCServiceWorkerRegistrationDescriptor.ipdlh Bug 1689147 - Part 5: Change comparable to an extended attribute, r=mccr8 2021-02-09 16:50:23 +00:00
NavigationPreloadManager.cpp Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
NavigationPreloadManager.h Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
PFetchEventOp.ipdl
PFetchEventOpProxy.ipdl
PServiceWorker.ipdl
PServiceWorkerContainer.ipdl Bug 1660470 - Avoid including ServiceWorkerIPCUtils.h from header files. r=nika 2020-11-23 16:05:38 +00:00
PServiceWorkerManager.ipdl Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
PServiceWorkerRegistration.ipdl Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
RemoteServiceWorkerContainerImpl.cpp
RemoteServiceWorkerContainerImpl.h
RemoteServiceWorkerImpl.cpp
RemoteServiceWorkerImpl.h
RemoteServiceWorkerRegistrationImpl.cpp Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
RemoteServiceWorkerRegistrationImpl.h Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorker.cpp Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorker.h
ServiceWorkerActors.cpp
ServiceWorkerActors.h
ServiceWorkerChild.cpp
ServiceWorkerChild.h
ServiceWorkerCloneData.cpp Bug 1673424 - Fix includes around StructuredCloneData.h. 2020-11-23 16:07:01 +00:00
ServiceWorkerCloneData.h Bug 1673424 - Fix includes around StructuredCloneData.h. 2020-11-23 16:07:01 +00:00
ServiceWorkerContainer.cpp Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorkerContainer.h
ServiceWorkerContainerChild.cpp
ServiceWorkerContainerChild.h
ServiceWorkerContainerParent.cpp
ServiceWorkerContainerParent.h
ServiceWorkerContainerProxy.cpp Bug 1679272 - Include ScopeExit.h exactly where used. r=andi 2020-12-07 14:25:59 +00:00
ServiceWorkerContainerProxy.h
ServiceWorkerDescriptor.cpp
ServiceWorkerDescriptor.h
ServiceWorkerEvents.cpp Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8 2021-05-27 08:35:40 +00:00
ServiceWorkerEvents.h
ServiceWorkerIPCUtils.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
ServiceWorkerInfo.cpp Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerInfo.h Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerInterceptController.cpp Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorkerInterceptController.h
ServiceWorkerJob.cpp
ServiceWorkerJob.h
ServiceWorkerJobQueue.cpp
ServiceWorkerJobQueue.h
ServiceWorkerManager.cpp Bug 1638097 - ServiceWorkerManager should not store registration related to temporary addons. r=asuth 2021-07-14 14:13:00 +00:00
ServiceWorkerManager.h Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerManagerChild.h Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorkerManagerParent.cpp Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorkerManagerParent.h Bug 1496997 - Remove a chunk of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg 2021-06-08 21:02:54 +00:00
ServiceWorkerOp.cpp Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerOp.h
ServiceWorkerOpArgs.ipdlh Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerOpPromise.h
ServiceWorkerParent.cpp
ServiceWorkerParent.h
ServiceWorkerPrivate.cpp Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerPrivate.h
ServiceWorkerPrivateImpl.cpp Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerPrivateImpl.h
ServiceWorkerProxy.cpp Bug 1679272 - Include ScopeExit.h exactly where used. r=andi 2020-12-07 14:25:59 +00:00
ServiceWorkerProxy.h
ServiceWorkerRegisterJob.cpp
ServiceWorkerRegisterJob.h
ServiceWorkerRegistrar.cpp Bug 1564235 - P5 Save NavigationPreload data into serviceworker.txt. r=dom-worker-reviewers,asuth 2021-06-10 06:01:28 +00:00
ServiceWorkerRegistrar.h Bug 1564235 - P5 Save NavigationPreload data into serviceworker.txt. r=dom-worker-reviewers,asuth 2021-06-10 06:01:28 +00:00
ServiceWorkerRegistrarTypes.ipdlh Bug 1564235 - P5 Save NavigationPreload data into serviceworker.txt. r=dom-worker-reviewers,asuth 2021-06-10 06:01:28 +00:00
ServiceWorkerRegistration.cpp Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistration.h Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistrationChild.cpp
ServiceWorkerRegistrationChild.h
ServiceWorkerRegistrationDescriptor.cpp
ServiceWorkerRegistrationDescriptor.h
ServiceWorkerRegistrationInfo.cpp Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang 2021-07-12 21:10:26 +00:00
ServiceWorkerRegistrationInfo.h Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistrationListener.h
ServiceWorkerRegistrationParent.cpp Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistrationParent.h Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistrationProxy.cpp Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerRegistrationProxy.h Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
ServiceWorkerScriptCache.cpp Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp 2021-07-13 11:52:42 +00:00
ServiceWorkerScriptCache.h
ServiceWorkerShutdownBlocker.cpp Bug 1711090 - Part 3: Add some missing nsITimerCallback queryinterface targets, r=KrisWright,necko-reviewers,kershaw 2021-05-18 20:45:17 +00:00
ServiceWorkerShutdownBlocker.h
ServiceWorkerShutdownState.cpp Bug 1496997 - Remove rest of child intercept code from dom/serviceworkers r=asuth,dom-workers-and-storage-reviewers,sg,jdescottes,nchevobbe 2021-06-08 21:02:54 +00:00
ServiceWorkerShutdownState.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
ServiceWorkerUnregisterCallback.cpp
ServiceWorkerUnregisterCallback.h
ServiceWorkerUnregisterJob.cpp
ServiceWorkerUnregisterJob.h
ServiceWorkerUpdateJob.cpp
ServiceWorkerUpdateJob.h
ServiceWorkerUtils.cpp Bug 1496997 - Remove ServiceWorkerParentInterceptEnabled() and callers r=asuth,dom-workers-and-storage-reviewers,necko-reviewers,dragana 2021-06-08 21:02:55 +00:00
ServiceWorkerUtils.h Bug 1564235 - P4 Save NavigationPreload data in ServiceWorkerRegistration Info. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00
moz.build Bug 1564235 - P3 Create IPC for NavigationPreload in PServiceWorkerRegistration.ipdl. r=dom-worker-reviewers,asuth 2021-06-10 06:01:27 +00:00