Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Sylvestre Ledru
ab4e3a0d42
Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
...
--HG--
extra : rebase_source : 7d2cc56b6553cd7a8d848d3c660f30735bd82eec
2016-01-22 16:58:49 +01:00
Ehsan Akhgari
6a00aad6ee
Bug 1209081 - Part 2: Upgrade the saved Requests in the DOM Cache to reflect the "navigate" RequestMode if they represent navigation content policy types; r=bkelly
2016-01-19 17:46:10 -05:00
Ehsan Akhgari
d08dcc913c
Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly
2016-01-19 17:46:10 -05:00
Ehsan Akhgari
61ec7f09b3
Bug 1240161 - Remove "only-if-cached" from RequestCache; r=bkelly
2016-01-15 16:24:16 -05:00
Yoshi Huang
4b500464f5
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.
2015-11-03 09:50:54 +08:00
Jonas Sicking
7bf7cbbd1a
Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly
2015-10-19 18:24:36 -07:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book
ca77b70a8d
merge mozilla-inbound to mozilla-central a=merge
2015-10-02 11:52:49 +02:00
Ehsan Akhgari
cf1376b18d
Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly
2015-10-01 18:47:05 -04:00
Ehsan Akhgari
7f68257bc6
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-10-01 18:47:04 -04:00
Yoshi Huang
f97211a451
Bug 1167100 - User originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Wes Kocher
df21b43278
Backed out changeset d0e88c95f3c5 (bug 1167100) for crashes a=backout
2015-09-29 10:25:20 -07:00
Yoshi Huang
872722fe37
Bug 1167100 - User nsIPrincipal.originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Henry Chang
b6b5862949
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-18 15:11:58 +08:00
Christoph Kerschbaumer
f69e2b393b
Bug 1048048 - add preload content policy types (r=ehsan)
...
--HG--
extra : source : 740ab1ecd0794b5a304b93ef528c8aa4c68ca417
2015-09-20 14:55:44 -07:00
Wes Kocher
cd079d2bf9
Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
...
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
319984decc
Bug 1048048 - add preload content policy types (r=ehsan)
2015-09-20 14:55:44 -07:00
Carsten "Tomcat" Book
c5551bace9
Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
...
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
hchang
2e884ff477
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-16 19:42:00 +02:00
Phil Ringnalda
92751c5b3e
Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
...
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari
bac1e66119
Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly
2015-09-16 20:38:21 -04:00
Ehsan Akhgari
b2a35e80cb
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-09-16 20:38:19 -04:00
Ehsan Akhgari
59c135c176
Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi
2015-09-16 19:15:30 -04:00
Ben Kelly
4bc651e2ed
Bug 1184607 P7.5 Add RequestRedirect to Cache API schema with migration. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
11f983b483
Bug 1184607 P7.4 Infrastructure for running Cache schema migrations. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
6e79a82e9f
Bug 1184607 P7.3 Rename Cache "max wipe version" constant to "first shipped version". r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
4fb2a6ffe3
Bug 1184607 P7.2 Validate Cache schema in debug builds. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
ac1063f343
Bug 1184607 P7.1 Move Cache schema SQL into separate constants. r=ehsan
2015-08-31 14:26:29 -07:00
Christoph Kerschbaumer
1c05a94924
Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan)
2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
7d6f90f702
Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
...
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer
cb37e46dd2
Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan)
2015-08-05 12:58:05 -07:00
Birunthan Mohanathas
a8939590de
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
54a5716d5e
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
687fb616be
Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj
2015-07-08 12:55:36 -07:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Ben Kelly
704bdbfb99
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
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
Ben Kelly
ce90b29484
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
72fd940fc3
Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
0a4c003dd5
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
2a2c3fa17d
Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
18e16a0fa2
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
7018c8ba46
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
cd8eec31d9
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
fe838f3834
Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly
2015-06-15 21:36:01 -04:00
Ehsan Akhgari
d9f5031529
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
7ea74752c9
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
dbbf4fbc4a
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
aee2720d22
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
4017e4028f
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
...
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
1f0ef48e79
Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE
2015-05-27 14:50:43 +02:00
Ehsan Akhgari
c66a858d3a
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
...
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 08:25:03 -04:00
Ben Kelly
322b8ff03f
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
4a673bf1ef
Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan
2015-05-21 18:16:36 -07:00
Ben Kelly
da9ebcd5b3
Bug 1166577 Use named sqlite params in Cache API code. r=ehsan
2015-05-20 06:51:19 -07:00
Ben Kelly
e65a98018d
Bug 1162342 Enable sqlite WAL transactions in Cache API. r=ehsan
2015-05-13 17:55:48 -07:00
Ben Kelly
fdfcffc5e4
Bug 1154325 P2 Use Blobs for CacheStorage keys to avoid encoding issues. r=ehsan
2015-04-29 09:03:15 -07:00
Boris Zbarsky
1540774b0c
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
5c1c07ceb9
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
547a2a2a4a
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-16 12:00:16 -07:00
Ben Kelly
8b9f92e9b8
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-16 12:00:16 -07:00
Ben Kelly
704dc9cd25
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-16 12:00:15 -07:00
Ben Kelly
ec154acf25
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
...
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-16 12:00:15 -07:00
Ehsan Akhgari
bbbc7baec8
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
cdb80ccd52
Backed out changeset a74f0b2545ab (bug 1110485)
...
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book
27b9a7bc7c
Backed out changeset 1bbb1ec38652 (bug 1110485)
2015-04-15 09:54:45 +02:00
Carsten "Tomcat" Book
c726b582d2
Backed out changeset de417ee861be (bug 1110485)
2015-04-15 09:54:36 +02:00
Carsten "Tomcat" Book
a093a9fcf5
Backed out changeset e8de5745c5c3 (bug 1110485)
2015-04-15 09:54:27 +02:00
Ben Kelly
73b14374a1
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-14 17:11:20 -07:00
Ben Kelly
b2299b8e39
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-14 17:11:19 -07:00
Ben Kelly
f2457b58e4
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-14 17:11:19 -07:00
Ben Kelly
d2326c284c
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
...
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-14 17:11:19 -07:00
Wes Kocher
82cca8b7cc
Backed out changeset 114377b11793 (bug 1110485)
...
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-14 15:27:46 -07:00
Wes Kocher
aa0620b663
Backed out changeset 565246a02797 (bug 1110485)
2015-04-14 15:27:45 -07:00
Wes Kocher
0e2cc1e14f
Backed out changeset 55723c780549 (bug 1110485)
2015-04-14 15:27:40 -07:00
Wes Kocher
4435a72cb2
Backed out changeset b6b9517e3d50 (bug 1110485)
2015-04-14 15:27:37 -07:00
Ben Kelly
ab18c80bfb
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-14 12:21:14 -07:00
Ben Kelly
b7100288ec
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-14 12:21:14 -07:00
Ben Kelly
51344894db
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-14 12:21:14 -07:00
Ben Kelly
8711b65af3
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
...
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-14 12:21:14 -07:00
Wes Kocher
164426c724
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)
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-13 15:18:19 -07:00
Ben Kelly
f9a0328ec7
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-13 14:05:57 -07:00
Ben Kelly
a3a390d7d6
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
...
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-13 14:05:57 -07:00
Ryan VanderMeulen
d8ade60200
Backed out 5 changesets (bug 1149987) for mochitest crashes.
...
Backed out changeset b62e371d6189 (bug 1149987)
Backed out changeset daa762fca8e6 (bug 1149987)
Backed out changeset bdb64d5befa5 (bug 1149987)
Backed out changeset 693901a4bcde (bug 1149987)
Backed out changeset e7c41c8653c4 (bug 1149987)
CLOSED TREE
2015-04-08 11:49:49 -04:00
Ehsan Akhgari
a68c1ffa1b
Bug 1149987 - Part 5: Do not store or match Response objects with a Vary:* header; r=bkelly
2015-04-08 10:27:40 -04:00
Ben Kelly
ae0e7c02cf
Bug 1150608 Do not reuse CacheId values within an origin. r=ehsan
2015-04-02 17:11:41 -07:00
Ehsan Akhgari
7f0cac73a3
Bug 1147699 - Part 14: Add a test for FetchEvent.request.context when intercepting loads coming from plugins; r=nsm
2015-03-30 08:42:53 -04:00
Ehsan Akhgari
ff8405ed01
Bug 1146610 - Add static_asserts that check the validity of the enum values that we write into the cache database; r=bkelly
...
These assertions will catch future accidental changes to these enums
which will invalidate the data that we store in the Cache database.
2015-03-24 16:45:12 -04:00
Ehsan Akhgari
1835ea57f2
Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly
2015-03-23 15:46:58 -04:00
Ehsan Akhgari
a40740e8bf
Bug 1143894 - Part 3: Do not propagate errors in getting the headers to the outside world; r=bkelly
...
The Vary header may contain invalid header name values. We should just
ignore such values as opposed to propagating them to the caller. Before
this patch, attempts to add a request with such a Vary header for example
would fail, since the internal QueryCache() call when executing the
CachePutAllAction would fail.
2015-03-21 19:45:12 -04:00
Ehsan Akhgari
6cb4d8af01
Bug 1143894 - Part 2: Support Vary headers including multiple header names in DOM Cache; r=bkelly
...
The Vary header may include one or more HTTP header field names, so we
need to extract those names here, similar to the way that the
nsHttpChannel::ResponseWouldVary() function consumes the Vary header.
2015-03-21 19:45:12 -04:00
Ehsan Akhgari
fc3b1c8b70
Bug 1143894 - Part 1: Clear the ErrorResult message if InternalHeaders::Get fails; r=bkelly
...
InternalHeaders::Get() may throw NS_ERROR_TYPE_ERR with an associated message.
The semantics of ErrorResult dictate that the message needs to be consumed by
the time that the object gets destroyed, so we need to clear it before
returning in these two places.
2015-03-21 19:45:11 -04:00
Ehsan Akhgari
eaf970dc6a
Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly
...
Before this patch, we would only set these pragmas as part of CreateSchema
which runs in SetupAction. This meant that the connection used to perform
other DBActions would not have had these pragmas applied. As a result,
sqlite would not honor foreign keys on such connections, so the cascade
delete rules responsible for deleting rows from request_headers and
response_headers would not get executed when DBSchema::CachePut deleted the
old entry before adding a new one.
The test in the patch demonstrates how this could result in an observable
breakage. Before this patch, the response headers stored in the cache for
the overwritten entry would reflect both `Mirrored: `foo' and `Mirrored: bar'
headers, which means that attempting to get this header on the cached
response would return the first entry, `foo'.
2015-03-17 08:18:28 -04:00
Ehsan Akhgari
acab4ce118
Bug 1142269 - Auto-vacuum the DOM Cache database; r=bkelly
...
It's easiest if we use auto_vaccum for now. In the future if this
proves to be insufficient we can look into more sophisticated
vacuuming strategies.
2015-03-13 19:21:13 -04:00
Wes Kocher
d38aa64d52
Backed out changeset b8d2fd1bb7f5 (bug 1142269) for mochitest-1 timeouts CLOSED TREE
2015-03-13 16:02:18 -07:00
Ehsan Akhgari
b6a46d94b1
Bug 1142269 - Auto-vacuum the DOM Cache database; r=bkelly
...
It's easiest if we use auto_vaccum for now. In the future if this
proves to be insufficient we can look into more sophisticated
vacuuming strategies.
2015-03-13 14:40:27 -04:00
Ehsan Akhgari
d5b78213fd
Bug 1133763 - Part 4: Store the response's security info in the cache database; r=bkelly
2015-03-13 14:37:19 -04:00
Ehsan Akhgari
d5840b488d
Bug 1133763 - Part 3: Wipe out the cache directory when detecting a change in the DB schema; r=bkelly
2015-03-13 14:37:18 -04:00