Commit Graph

87 Commits

Author SHA1 Message Date
Fernando Jimenez
2e5485a600 Bug 1172562 - Clear QuotaManager storage when uninstalling an app. Test. r=bkelly 2015-07-02 11:17:01 +02:00
Ben Kelly
c1bdbc4ce6 Bug 1178196 Fix race in Cache API orphaned data tests. r=ehsan 2015-06-30 08:31:00 -07:00
Carsten "Tomcat" Book
306ecadd2b Backed out changeset 6ff483d6ba34 (bug 1172562) for timeouts in test_cache_clear_on_app_uninstall.html 2015-06-30 14:58:20 +02:00
Fernando Jimenez
62b6874bdc Bug 1172562 - Add a test to check that cache storage is cleaned up when uninstalling an app. r=bkelly 2015-06-30 11:53:30 +02:00
Ben Kelly
f1f29679fd Bug 1177965 Remove browser.privatebrowing.autostart from browser_cache_pb_window.js r=ehsan 2015-06-29 11:45:26 -07:00
Ben Kelly
65d87bf0f5 Bug 1175138 P6 Add a simple test to verify CacheStorage rejects in http origin. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
2491e551ee Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
de7c269851 Bug 1173467 P4 Add a test to validate Cache in private browsing window. r=ehsan 2015-06-26 19:36:40 -07:00
Cameron McCormack
e0844cdbf0 Back out a bit more of bug 1173467 (changeset 30cefdf8d020) that I missed. 2015-06-27 12:21:05 +10:00
Ben Kelly
48a8c703f8 Bug 1173467 P4 Add a test to validate Cache in private browsing window. r=ehsan 2015-06-26 17:42:56 -07:00
Ben Kelly
06d449dbbe Bug 1110446 P4 Add a test that orphanes Cache API body files. r=ehsan 2015-06-25 22:22:47 -07:00
Ben Kelly
dab632639e Bug 1110446 P3 Add a test that forces a Cache object to be orphaned and reclaimed. r=ehsan 2015-06-25 22:22:47 -07:00
Ehsan Akhgari
1d3ef5533c 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
Ben Kelly
caeaf9acac Bug 1168152 P4 Add a test to verify Cache incremental vacuum works. r=ehsan 2015-05-28 07:46:48 -07:00
Ben Kelly
3b857c92cb Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan 2015-05-21 18:16:36 -07:00
Ben Kelly
caa53b1f59 Bug 1165395 Test Cache API after QuotaManager reset. r=janv 2015-05-19 17:47:16 -07:00
Ryan VanderMeulen
878ef18b13 Backed out changeset f7054968c36b (bug 1165395) for B2G debug crashes.
CLOSED TREE
2015-05-19 11:42:01 -04:00
Ben Kelly
c404306bf3 Bug 1165395 Test Cache API after QuotaManager reset. r=janv 2015-05-19 06:50:20 -07:00
Nikhil Marathe
b2627df572 Bug 1162411 - Fix Request CORS bug. r=bz 2015-05-07 15:39:13 -07:00
Ehsan Akhgari
c4dae07917 Bug 1162487 - Enable the dom.caches.enabled pref in test_chrome_constructor.html; r=baku 2015-05-08 08:43:50 -04:00
Ben Kelly
d8cf2a1f58 Bug 1160138 P3 Test Cache chrome-only Constructor. r=ehsan 2015-05-05 15:45:36 -07:00
Ben Kelly
98b548236d Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
Tooru Fujisawa
4397f3f321 Bug 1102219 - Part 5: Replace more String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Timur Valeev
46cccb491b Bug 1150001 - Cache API should not return Response body when matching Request with HEAD method. r=bkelly 2015-04-23 16:17:37 +03:00
Ehsan Akhgari
e5c186b614 Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm 2015-04-21 00:23:22 -04:00
Ehsan Akhgari
3344e3c192 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
Ehsan Akhgari
85e3790c93 Bug 1153388 - Don't attempt to read a header that may not exist; r=bkelly
getHeader() throws an exception if the header doesn't exist.  The checks
for hasHeader() below should prevent this exception from being raised.
2015-04-11 09:57:57 -04:00
Ehsan Akhgari
f684954351 Bug 1141256 - Stop randomizing the URL for the service worker now that bug 931249 has been fixed 2015-04-09 11:11:14 -04:00
Ryan VanderMeulen
a148661e18 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
915fd31fbc 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
Ehsan Akhgari
dfd730a737 Bug 1147184 - Extend the tests for Cache.put; r=bkelly 2015-03-25 21:22:18 -04:00
Ehsan Akhgari
ae4791f6c6 Bug 1146612 - Add a test to ensure that Cache.put() with an existing request will reorder it in the DB; r=bkelly 2015-03-24 10:32:02 -04:00
Ehsan Akhgari
a64a695746 Bug 1146585 - Add a test for Cache.delete; r=bkelly 2015-03-24 10:32:01 -04:00
Ben Kelly
67f1c62b05 Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
Ehsan Akhgari
e2d538b90b Bug 1146202 - Add a test for the handling of ignoreVary in Cache.keys; r=bkelly 2015-03-23 15:46:58 -04:00
Ehsan Akhgari
660887271f Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly 2015-03-23 15:46:58 -04:00
Ehsan Akhgari
55b54a13f0 Bug 1110814 follow-up: Fix a typo in order to fix the test failures 2015-03-22 10:35:29 -04:00
Ben Kelly
7fe87f9c51 Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey 2015-03-22 02:52:12 -04:00
Ehsan Akhgari
d986820b12 Bug 1145792 - Add a test for the Cache.keys method; r=bkelly 2015-03-21 20:13:33 -04:00
Ehsan Akhgari
07650e2251 Bug 1145445 - Add a test for CacheStorage; r=bkelly 2015-03-21 20:11:24 -04:00
Ehsan Akhgari
55e8be4ca2 Bug 1144725 - Forcefully terminate the workers used in DOM cache tests once we're done with them; r=bkelly 2015-03-21 20:09:40 -04:00
Ehsan Akhgari
7f945cacd2 Bug 1143894 - Part 5: Add a test for handling of the Vary header with multiple entries in the cache; r=bkelly 2015-03-21 19:45:14 -04:00
Ehsan Akhgari
e9a5c75cb5 Bug 1143894 - Part 4: Add tests for handling of the Vary header in DOM Cache; r=bkelly 2015-03-21 19:45:13 -04:00
Ehsan Akhgari
732936d337 Bug 1144337 - Add tests to ensure that cacheName is only honored on CacheStorage, and not Cache; r=bkelly 2015-03-20 16:05:49 -04:00
Ehsan Akhgari
979f8dd627 Bug 1143222 - Put the DOM Cache tests in sequential mode again until we fix the rest of the intermittent failures; a=RyanVM 2015-03-19 17:08:02 -04:00
Ehsan Akhgari
bb3e413951 Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly 2015-03-17 10:58:00 +01:00
Nigel Babu
e6c7a9380b Backed out changeset dd13fdf7b284 (bug 1144236) for bustage CLOSED TREE 2015-03-18 12:05:33 +05:30
Ehsan Akhgari
3f85829261 Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly 2015-03-17 23:56:32 -04:00
Ehsan Akhgari
f06a3793f9 Bug 1143222 - Avoid dumping out extremely long response bodies to the mochitest log, and re-enable the newly added DOM cache tests to run both in seqential and parallel modes; r=bkelly
The test timeouts here are some form of bug 1141256, which causes the service
worker spawned in the parallel mode of the tests to never start up.  It turns
out that avoiding sending this huge message to the mochitest logger avoids the
issue on the infrastructure, so let's re-enable these tests.  Bug 1141256 still
needs to be investigated.
2015-03-17 16:51:57 -04:00
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