gecko/dom/cache/test/mochitest
Ehsan Akhgari db9a1f6dab 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
..
driver.js Backed out changeset 734e81bff9f3 (bug 1110487) for intermittent e10s cache test crashes. 2015-03-16 13:51:33 -04:00
frame.html Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00
message_receiver.html Bug 1140658 - Part 1: Create a mini-framework for running tests in the worker, service worker and window contexts; r=bkelly 2015-03-11 16:45:00 -04:00
mirror.sjs Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly 2015-03-17 08:18:28 -04:00
mochitest.ini Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly 2015-03-17 08:18:28 -04:00
serviceworker_driver.js Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00
test_cache_add.html Bug 1140658 - Part 4: Port test_cache_add.html to the new mini-framework; r=bkelly 2015-03-11 16:45:05 -04:00
test_cache_add.js Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00
test_cache_match_request.html Bug 1142333 - Add a test for passing Request objects to DOM cache match methods; r=bkelly 2015-03-13 14:28:24 -04:00
test_cache_match_request.js Bug 1143833 - Add tests for the ignoreSearch match mode in DOM cache; r=bkelly 2015-03-16 17:11:05 -04:00
test_cache_matchAll_request.html Bug 1142790 - Add a test for passing Request objects to DOM cache matchAll method; r=bkelly 2015-03-13 19:21:16 -04:00
test_cache_matchAll_request.js Bug 1143833 - Add tests for the ignoreSearch match mode in DOM cache; r=bkelly 2015-03-16 17:11:05 -04:00
test_cache_overwrite.html Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly 2015-03-17 08:18:28 -04:00
test_cache_overwrite.js Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly 2015-03-17 08:18:28 -04:00
test_cache.html Bug 1140658 - Part 3: Port test_cache.html to the new mini-framework; r=bkelly 2015-03-11 16:45:03 -04:00
test_cache.js Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00
worker_driver.js Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00
worker_wrapper.js Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly 2015-03-13 14:32:02 -04:00