gecko-dev/dom/serviceworkers
Tom Ritter b732796900 Bug 1770498: Create ShouldRFP(nsILoadInfo) and make ShouldRFP(nsIPrincipal) explicitly dangerous r=timhuang
- Move ShouldRFP(char*), ShouldRFP(docshell), ShouldRFP(Document)
  below some utility code.

- Now that we know we should check the CookieJarSettings, using
  ShouldRFP(nsIPrincipal) is dangerous.  We mark it as dangerous
  and annotate the existing uses of it.

- At the same time, an nsILoadInfo has the CookieJarSettings we
  want to check, so create a ShouldRFP(nsILoadInfo) that checks
  it and cascades to the (marked-dangerous-but-not-dangerous-for-
  this-call) principal function.

- We also correct a situation where WorkerLoadInfo does not
  initialize the shouldRFP member.

Differential Revision: https://phabricator.services.mozilla.com/D150591
2022-07-15 20:39:20 +00:00
..
docs Bug 1693074 - Adding telemetry for evaluating the duration of fetch event dispatching and response synthesizing. r=dom-worker-reviewers,asuth 2021-08-22 11:02:18 +00:00
test Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo 2022-07-12 04:21:34 +00:00
FetchEventOpChild.cpp Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
FetchEventOpChild.h Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
FetchEventOpParent.cpp Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
FetchEventOpParent.h Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
FetchEventOpProxyChild.cpp Bug 1754004 - Part 11: Simplify the IPCStream serialization API, r=asuth,necko-reviewers,kershaw 2022-05-13 14:16:13 +00:00
FetchEventOpProxyChild.h Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
FetchEventOpProxyParent.cpp Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana 2022-05-13 14:16:10 +00:00
FetchEventOpProxyParent.h Bug 1768189 - Part 27: Apply modernize-concat-nested-namespaces to dom/security/featurepolicy/FeaturePolicy.h ... r=andi 2022-05-09 20:41:13 +00:00
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
IPCServiceWorkerRegistrationDescriptor.ipdlh
NavigationPreloadManager.cpp Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth 2022-06-30 11:33:56 +00:00
NavigationPreloadManager.h Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth 2022-06-30 11:33:56 +00:00
PFetchEventOp.ipdl Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
PFetchEventOpProxy.ipdl Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
PServiceWorker.ipdl Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8 2022-02-09 17:29:47 +00:00
PServiceWorkerContainer.ipdl Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8 2022-02-09 17:29:47 +00:00
PServiceWorkerManager.ipdl Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8 2022-02-09 17:29:47 +00:00
PServiceWorkerRegistration.ipdl Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8 2022-02-09 17:29:47 +00:00
RemoteServiceWorkerContainerImpl.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
RemoteServiceWorkerContainerImpl.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
RemoteServiceWorkerImpl.cpp Bug 1773088 - Part 2: Stop requiring an actor to serialize StructuredCloneData over IPC, r=asuth 2022-06-08 15:24:27 +00:00
RemoteServiceWorkerImpl.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
RemoteServiceWorkerRegistrationImpl.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
RemoteServiceWorkerRegistrationImpl.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorker.cpp Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski 2022-06-30 11:33:56 +00:00
ServiceWorker.h Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth 2022-06-30 11:33:56 +00:00
ServiceWorkerActors.cpp Bug 1768189 - Part 27: Apply modernize-concat-nested-namespaces to dom/security/featurepolicy/FeaturePolicy.h ... r=andi 2022-05-09 20:41:13 +00:00
ServiceWorkerActors.h Bug 1768189 - Part 27: Apply modernize-concat-nested-namespaces to dom/security/featurepolicy/FeaturePolicy.h ... r=andi 2022-05-09 20:41:13 +00:00
ServiceWorkerChild.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerChild.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerCloneData.cpp Bug 1773088 - Part 3: Remove StealFromAndBuildClonedMessageData, r=asuth 2022-06-08 15:24:28 +00:00
ServiceWorkerCloneData.h Bug 1773088 - Part 3: Remove StealFromAndBuildClonedMessageData, r=asuth 2022-06-08 15:24:28 +00:00
ServiceWorkerContainer.cpp Bug 1776109 - Part 2: Add ServiceWorkersEnabled() for service worker interfaces exposure r=asuth 2022-06-30 11:33:56 +00:00
ServiceWorkerContainer.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerContainerChild.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerContainerChild.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerContainerParent.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerContainerParent.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerContainerProxy.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerContainerProxy.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerDescriptor.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerDescriptor.h
ServiceWorkerEvents.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerEvents.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerIPCUtils.h
ServiceWorkerInfo.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerInfo.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerInterceptController.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerInterceptController.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerJob.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerJob.h
ServiceWorkerJobQueue.cpp Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerJobQueue.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerManager.cpp Bug 1776414 - Change nsIHttpChannelInternal corsMode to requestMode. r=kershaw,necko-reviewers 2022-06-29 14:09:57 +00:00
ServiceWorkerManager.h Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage, r=asuth 2022-06-15 12:45:08 +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 1773088 - Part 2: Stop requiring an actor to serialize StructuredCloneData over IPC, r=asuth 2022-06-08 15:24:27 +00:00
ServiceWorkerOp.h Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
ServiceWorkerOpArgs.ipdlh Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
ServiceWorkerOpPromise.h Bug 1765777 - Resolve FetchEvent.preloadResponse when the response is available not the response end. r=dom-worker-reviewers,jesup. 2022-05-11 19:40:47 +00:00
ServiceWorkerParent.cpp Bug 1773088 - Part 2: Stop requiring an actor to serialize StructuredCloneData over IPC, r=asuth 2022-06-08 15:24:27 +00:00
ServiceWorkerParent.h Bug 1768189 - Part 28: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerCloneData.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerPrivate.cpp Bug 1740263 - Implement the CSP checking callback for WASM. r=dom-worker-reviewers,smaug,freddyb 2022-05-19 14:13:50 +00:00
ServiceWorkerPrivate.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerPrivateImpl.cpp Bug 1770498: Create ShouldRFP(nsILoadInfo) and make ShouldRFP(nsIPrincipal) explicitly dangerous r=timhuang 2022-07-15 20:39:20 +00:00
ServiceWorkerPrivateImpl.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerProxy.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerProxy.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerQuotaUtils.cpp Bug 1722502 - P3 Quota usage mitigation algorithm implementation. r=dom-worker-reviewers,asuth 2021-08-30 09:24:32 +00:00
ServiceWorkerQuotaUtils.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegisterJob.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegisterJob.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrar.cpp Bug 1602393: Fake ShutdownComplete() for all error conditions of ServiceWorkerRegistrar::ProfileStopped. r=dom-worker-reviewers,jesup 2022-05-23 14:43:29 +00:00
ServiceWorkerRegistrar.h Bug 1760662 - DOM worker thread-safety annotations r=dom-worker-reviewers,smaug 2022-04-01 15:44:23 +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 Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerRegistration.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerRegistrationChild.cpp Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerRegistrationChild.h Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00
ServiceWorkerRegistrationDescriptor.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationDescriptor.h
ServiceWorkerRegistrationInfo.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationInfo.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationListener.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationParent.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationParent.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationProxy.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerRegistrationProxy.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerScriptCache.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerScriptCache.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerShutdownBlocker.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerShutdownBlocker.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerShutdownState.cpp Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerShutdownState.h Bug 1768189 - Part 29: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerPrivate.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUnregisterCallback.cpp Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUnregisterCallback.h Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUnregisterJob.cpp Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage, r=asuth 2022-06-15 12:45:08 +00:00
ServiceWorkerUnregisterJob.h Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUpdateJob.cpp Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUpdateJob.h Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUtils.cpp Bug 1768189 - Part 30: Apply modernize-concat-nested-namespaces to dom/serviceworkers/ServiceWorkerUnregisterCallback.cpp ... r=andi 2022-05-09 20:41:14 +00:00
ServiceWorkerUtils.h Bug 1723050 - Part 26: Replace typedef by using in dom/serviceworkers/ r=dom-worker-reviewers,edenchuang 2021-08-11 14:41:34 +00:00
moz.build Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE 2022-05-17 02:27:10 +03:00