Commit Graph

87 Commits

Author SHA1 Message Date
Fernando Jimenez
f1d1db8162 Bug 1172562 - Clear QuotaManager storage when uninstalling an app. Test. r=bkelly 2015-07-02 11:17:01 +02:00
Ben Kelly
88ef473f6f Bug 1178196 Fix race in Cache API orphaned data tests. r=ehsan 2015-06-30 08:31:00 -07:00
Carsten "Tomcat" Book
c00d74d838 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
ab047e55b9 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
6fa768930e Bug 1177965 Remove browser.privatebrowing.autostart from browser_cache_pb_window.js r=ehsan 2015-06-29 11:45:26 -07:00
Ben Kelly
1ec1cb009d 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
a045d1505b Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
78a09698e5 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
40d0404cb8 Back out a bit more of bug 1173467 (changeset 30cefdf8d020) that I missed. 2015-06-27 12:21:05 +10:00
Ben Kelly
6316583124 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
6f2f24e1a2 Bug 1110446 P4 Add a test that orphanes Cache API body files. r=ehsan 2015-06-25 22:22:47 -07:00
Ben Kelly
9eb291d902 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
a3d9b8fae8 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
23551b0aaa Bug 1168152 P4 Add a test to verify Cache incremental vacuum works. r=ehsan 2015-05-28 07:46:48 -07:00
Ben Kelly
219bd20f7c Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan 2015-05-21 18:16:36 -07:00
Ben Kelly
94d2160c9a Bug 1165395 Test Cache API after QuotaManager reset. r=janv 2015-05-19 17:47:16 -07:00
Ryan VanderMeulen
a98859c6c7 Backed out changeset f7054968c36b (bug 1165395) for B2G debug crashes.
CLOSED TREE
2015-05-19 11:42:01 -04:00
Ben Kelly
6a28455b8e Bug 1165395 Test Cache API after QuotaManager reset. r=janv 2015-05-19 06:50:20 -07:00
Nikhil Marathe
86aedb9747 Bug 1162411 - Fix Request CORS bug. r=bz 2015-05-07 15:39:13 -07:00
Ehsan Akhgari
977149ac89 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
bd6433bc24 Bug 1160138 P3 Test Cache chrome-only Constructor. r=ehsan 2015-05-05 15:45:36 -07:00
Ben Kelly
70c4125c44 Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
Tooru Fujisawa
ade74d278c 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
43a3b626e3 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
9e01f290af Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm 2015-04-21 00:23:22 -04:00
Ehsan Akhgari
5e05661d58 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
7e83dd6ef9 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
24fadf069b 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
8679e335c9 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
bbf8a918b8 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
d0edee4796 Bug 1147184 - Extend the tests for Cache.put; r=bkelly 2015-03-25 21:22:18 -04:00
Ehsan Akhgari
774f58e4be 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
8f4ac31b4b Bug 1146585 - Add a test for Cache.delete; r=bkelly 2015-03-24 10:32:01 -04:00
Ben Kelly
c4c02983ea Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
Ehsan Akhgari
c61241216d 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
fc4715727f Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly 2015-03-23 15:46:58 -04:00
Ehsan Akhgari
3d55a92539 Bug 1110814 follow-up: Fix a typo in order to fix the test failures 2015-03-22 10:35:29 -04:00
Ben Kelly
692f72b360 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
c2f0c00937 Bug 1145792 - Add a test for the Cache.keys method; r=bkelly 2015-03-21 20:13:33 -04:00
Ehsan Akhgari
db526acba3 Bug 1145445 - Add a test for CacheStorage; r=bkelly 2015-03-21 20:11:24 -04:00
Ehsan Akhgari
49d9bd179e 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
c7ce5ec18d 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
a24b0103aa 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
79ee8722c2 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
77316d2007 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
679e6efd4a Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly 2015-03-17 10:58:00 +01:00
Nigel Babu
b31bcba27d Backed out changeset dd13fdf7b284 (bug 1144236) for bustage CLOSED TREE 2015-03-18 12:05:33 +05:30
Ehsan Akhgari
2b77f254df Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly 2015-03-17 23:56:32 -04:00
Ehsan Akhgari
41f1bd318c 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
133e9b738f 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