gecko-dev/dom/cache
Nikhil Marathe b52b66ebf5 Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan
The ServiceWorkerRegistrationInfo's principal is the principal of the document
that called register(). If we create WorkerPrivate instances based off of
this, they have a valid principal in terms of security and same-origin-ness,
but the URI path is wrong. When fetching the script from the network, the
channel's principal is used to update the worker principal. We need to do the
same when the script is loaded from Cache. This patch adds support to store the
channel principal in the cache.

--HG--
extra : rebase_source : e7d527335aa4f0d4ee52e58915c8b0ef4ad26983
2015-06-04 21:39:34 -07:00
..
test/mochitest Bug 1172629 - Use the caches global property from an iframe loaded after setting the pref in order to make the tests pass with the pref disabled; r=bkelly a=RyanVM 2015-06-09 16:06:00 -04:00
Action.cpp Bug 1110487 P4 Allow Cache Action objects to be canceled more than once. r=ehsan 2015-03-23 22:23:45 -04:00
Action.h Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan 2015-05-07 05:16:51 -07:00
ActorChild.cpp Bug 1110485 P8 Correctly set the Feature on the stream control child actor. r=baku 2015-04-16 12:00:16 -07:00
ActorChild.h Bug 1110487 P1 Fix some non-unified bustage before adding new code. r=ehsan 2015-03-16 07:10:36 -07:00
ActorUtils.h
AutoUtils.cpp Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan 2015-06-16 17:39:05 -07:00
AutoUtils.h Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
Cache.cpp Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan 2015-06-16 17:39:05 -07:00
Cache.h Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
CacheChild.cpp Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku 2015-05-05 07:03:52 -07:00
CacheChild.h Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku 2015-05-05 07:03:52 -07:00
CacheOpChild.cpp Bug 1160227 Improve Cache API warnings. r=ehsan 2015-05-01 08:15:52 -07:00
CacheOpChild.h Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku 2015-05-01 08:13:36 -07:00
CacheOpParent.cpp Bug 1160227 Improve Cache API warnings. r=ehsan 2015-05-01 08:15:52 -07:00
CacheOpParent.h Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
CacheParent.cpp Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
CacheParent.h Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
CachePushStreamChild.cpp Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku 2015-05-05 07:03:52 -07:00
CachePushStreamChild.h Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku 2015-05-05 07:03:52 -07:00
CachePushStreamParent.cpp Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey 2015-03-22 02:52:12 -04:00
CachePushStreamParent.h Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey 2015-03-22 02:52:12 -04:00
CacheStorage.cpp Bug 1160138 P2 Add a [ChromeConstructor] to CacheStorage to support devtools. r=ehsan 2015-05-05 15:45:36 -07:00
CacheStorage.h Bug 1160138 P2 Add a [ChromeConstructor] to CacheStorage to support devtools. r=ehsan 2015-05-05 15:45:36 -07:00
CacheStorageChild.cpp Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku 2015-05-01 08:13:36 -07:00
CacheStorageChild.h Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku 2015-05-01 08:13:36 -07:00
CacheStorageParent.cpp Bug 1160227 Improve Cache API warnings. r=ehsan 2015-05-01 08:15:52 -07:00
CacheStorageParent.h Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
CacheStreamControlChild.cpp Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
CacheStreamControlChild.h Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
CacheStreamControlParent.cpp Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
CacheStreamControlParent.h Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
CacheTypes.ipdlh Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan 2015-06-04 21:39:34 -07:00
Connection.cpp Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan 2015-05-28 07:46:47 -07:00
Connection.h Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan 2015-05-28 07:46:47 -07:00
Context.cpp Bug 1174768 Cache should check if QuotaManager is shutting down before calling GetOrCreate. r=janv 2015-06-16 12:00:55 -07:00
Context.h Bug 1168135 P2 Add Cache Context::Init() method. r=ehsan 2015-05-28 07:46:47 -07:00
DBAction.cpp Bug 1168152 P2 Use a wrapper mozIStorageConnection for shared Cache connections. r=ehsan 2015-05-28 07:46:47 -07:00
DBAction.h Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan 2015-05-07 05:16:51 -07:00
DBSchema.cpp Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan 2015-06-04 21:39:34 -07:00
DBSchema.h Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan 2015-05-28 07:46:47 -07:00
Feature.cpp Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku 2015-05-01 08:13:36 -07:00
Feature.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
FileUtils.cpp Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-16 12:00:16 -07:00
FileUtils.h Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan 2015-04-16 12:00:16 -07:00
IPCUtils.h Bug 1174868 - Avoid storing RequestContext inside InternalRequest; r=nsm,bkelly,smaug 2015-06-15 21:36:04 -04:00
Manager.cpp Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan 2015-05-07 05:16:51 -07:00
Manager.h Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
ManagerId.cpp Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking 2015-05-20 17:11:49 -07:00
ManagerId.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
moz.build Bug 1168152 P2 Use a wrapper mozIStorageConnection for shared Cache connections. r=ehsan 2015-05-28 07:46:47 -07:00
OfflineStorage.cpp Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
OfflineStorage.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
PCache.ipdl Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
PCacheOp.ipdl Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
PCachePushStream.ipdl Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey 2015-03-22 02:52:12 -04:00
PCacheStorage.ipdl Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
PCacheStreamControl.ipdl
PrincipalVerifier.cpp Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking 2015-05-20 17:11:49 -07:00
PrincipalVerifier.h Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
QuotaClient.cpp Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv. 2015-04-30 13:46:51 -07:00
QuotaClient.h Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
ReadStream.cpp Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
ReadStream.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
SavedTypes.h Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
StreamControl.cpp Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
StreamControl.h Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
StreamList.cpp Bug 1150608 Do not reuse CacheId values within an origin. r=ehsan 2015-04-02 17:11:41 -07:00
StreamList.h Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
Types.h Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
TypeUtils.cpp Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan 2015-06-04 21:39:34 -07:00
TypeUtils.h Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan 2015-06-16 17:39:05 -07:00