Commit Graph

69 Commits

Author SHA1 Message Date
Birunthan Mohanathas
a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Ehsan Akhgari
82415f1075 Bug 1180765 - Bump the caches.sqlite version numbers because of the field that was added in bug 1169044; r=jdm 2015-07-08 19:35:29 -04:00
Ben Kelly
c474b2e155 Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj 2015-07-08 12:55:36 -07:00
Dragana Damjanovic
f5e3e71a6d Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Ben Kelly
320eeedfed Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan 2015-06-25 22:22:46 -07:00
Nikhil Marathe
171fda05df 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.
2015-06-04 21:39:34 -07:00
Ben Kelly
0ac57edac3 Bug 1173439 P5 Cache should index on a hash instead of the url itself. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
8753ac9ba8 Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
3eda5cda37 Bug 1173439 P3 Use url query field for database matching and Request creation. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
3dbf2a7db9 Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
0399857834 Bug 1173439 P1 Store URLs as UTF8 strings in Cache instead of UTF16. r=ehsan 2015-06-16 17:39:05 -07:00
Ehsan Akhgari
e0d26c40ab Bug 1174982 - Add the new nsContentPolicyType values to the DBSchema.cpp static_assert; r=bkelly
Added a comment to nsIContentPolicyBase.idl since even I forgot to do this.
2015-06-16 10:42:31 -04:00
Ehsan Akhgari
0fc000c4f0 Bug 1174868 - Avoid storing RequestContext inside InternalRequest; r=nsm,bkelly,smaug
We are going to infer all RequestContext types from the corresponding
nsContentPolicyType. It no longer makes sense to store both of these on
InternalRequest.  This has the extra benefit that we don't need to worry
about keeping them in sync any more.
2015-06-15 21:36:04 -04:00
Ehsan Akhgari
eb2f172a3a Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly 2015-06-15 21:36:01 -04:00
Ehsan Akhgari
c881a5a634 Bug 1164397 - Part 5: Save the redirected flag and the redirected URI in the DOM cache; r=bkelly 2015-06-05 15:57:44 -04:00
Ben Kelly
32e5232a1f Bug 1168152 P5 Follow-up to use 32kb growth size as intended in previous patches. r=me 2015-05-28 07:52:35 -07:00
Ben Kelly
ac6b9970a4 Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan 2015-05-28 07:46:47 -07:00
Ben Kelly
0a009b5dfb Bug 1168152 P1 Use a smaller sqlite page size and a growth increment in Cache. r=ehsan 2015-05-28 07:46:47 -07:00
Ehsan Akhgari
e8c86479b9 Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly 2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
c58dbca945 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari
f770eb78bf Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly 2015-05-27 08:25:03 -04:00
Ben Kelly
5c053286a9 Bug 1166911 Modify Cache API sqlite code to use IS NULL literal when comparing an empty key. r=ehsan 2015-05-21 18:16:37 -07:00
Ben Kelly
f98f324fbf Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan 2015-05-21 18:16:36 -07:00
Ben Kelly
760aa0c4fa Bug 1166577 Use named sqlite params in Cache API code. r=ehsan 2015-05-20 06:51:19 -07:00
Ben Kelly
650a9505a3 Bug 1162342 Enable sqlite WAL transactions in Cache API. r=ehsan 2015-05-13 17:55:48 -07:00
Ben Kelly
5d10d9b4ac Bug 1154325 P2 Use Blobs for CacheStorage keys to avoid encoding issues. r=ehsan 2015-04-29 09:03:15 -07:00
Boris Zbarsky
789a3bf96e Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Boris Zbarsky
2067ba5765 Bug 1157754 part 2. Convert consumers of ErrorResult::ClearMessage() to the new better APIs we have for suppressing exceptions on ErrorResult. r=bkelly 2015-04-26 22:38:17 -04:00
Ben Kelly
0c3ecc763a Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-16 12:00:16 -07:00
Ben Kelly
581b87a39b Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-16 12:00:16 -07:00
Ben Kelly
19788ebc81 Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-16 12:00:15 -07:00
Ben Kelly
3eda7b0ad0 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-16 12:00:15 -07:00
Ehsan Akhgari
2d0efd09c4 Bug 1149987 - Part 8: Do not store or match Response objects with a Vary:* header; r=bkelly 2015-04-15 15:55:51 -04:00
Carsten "Tomcat" Book
4fe7ad9602 Backed out changeset a74f0b2545ab (bug 1110485) 2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book
5c850292a0 Backed out changeset 1bbb1ec38652 (bug 1110485) 2015-04-15 09:54:45 +02:00
Carsten "Tomcat" Book
a0faffc2d4 Backed out changeset de417ee861be (bug 1110485) 2015-04-15 09:54:36 +02:00
Carsten "Tomcat" Book
6edc845d59 Backed out changeset e8de5745c5c3 (bug 1110485) 2015-04-15 09:54:27 +02:00
Ben Kelly
96cffe9b41 Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-14 17:11:20 -07:00
Ben Kelly
16e8411904 Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-14 17:11:19 -07:00
Ben Kelly
07a1eaa64f Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-14 17:11:19 -07:00
Ben Kelly
276f4fe9b5 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-14 17:11:19 -07:00
Wes Kocher
0b492b45ca Backed out changeset 114377b11793 (bug 1110485) 2015-04-14 15:27:46 -07:00
Wes Kocher
b1e47b9b9e Backed out changeset 565246a02797 (bug 1110485) 2015-04-14 15:27:45 -07:00
Wes Kocher
1936b2c264 Backed out changeset 55723c780549 (bug 1110485) 2015-04-14 15:27:40 -07:00
Wes Kocher
b05b404753 Backed out changeset b6b9517e3d50 (bug 1110485) 2015-04-14 15:27:37 -07:00
Ben Kelly
9b3b586d02 Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan 2015-04-14 12:21:14 -07:00
Ben Kelly
172107353e Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan 2015-04-14 12:21:14 -07:00
Ben Kelly
94bcb24eb5 Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm 2015-04-14 12:21:14 -07:00
Ben Kelly
87c4610793 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku 2015-04-14 12:21:14 -07:00
Wes Kocher
9681a7a9f0 Backed out 3 changesets (bug 1110485) for wpt-3 bustage
Backed out changeset e8bd3bf404ff (bug 1110485)
Backed out changeset fa29dbb49a66 (bug 1110485)
Backed out changeset 12deb121d126 (bug 1110485)
2015-04-13 15:18:19 -07:00