Ben Kelly
65948b1d74
Bug 1181871 P1 Only enforce Cache Context shared data destruction on target thread after init. r=ehsan
2015-07-10 13:56:06 -07:00
Ben Kelly
eacd6b8c75
Bug 1181577 Delay creation of QuotaInitRunnable until Cache Context actually started. r=ehsan
2015-07-09 11:19:50 -07:00
Ehsan Akhgari
b6814786a0
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
34c30b2005
Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj
2015-07-08 12:55:36 -07:00
Dragana Damjanovic
e3003eee82
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
e1b03075a7
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Ben Kelly
cc54c82d2a
Bug 1179772 Make Cache API honor devtools SW testing flag in SW itself. r=ehsan
2015-07-02 11:47:10 -07:00
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
Jan Varga
138aed340f
Bug 1170021 - Part 2: Move DirectoryLock out of QuotaManager class; r=bent
2015-06-30 14:59:53 +02:00
Jan Varga
1585104454
Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent
2015-06-30 14:59:27 +02: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
3f01155885
Bug 1175138 P5 Make CacheStorage reject on untrusted origins. 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
Ben Kelly
98bc56b658
Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 19:36:40 -07:00
Ben Kelly
377995d164
Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan
2015-06-26 19:36:39 -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
Cameron McCormack
b78c4941a5
Back out bug 1173467 (changesets a20799ebf48c, 9312c5cb756e, c0e8bba17067, af075443ab21, 30cefdf8d020) for assertion failures in test_app_protocol.html.
2015-06-27 11:57:17 +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
4f9723651e
Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 17:42:56 -07:00
Ben Kelly
f33568b504
Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan
2015-06-26 17:42:55 -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
Ben Kelly
6f2dacfb3e
Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan
2015-06-25 22:22:46 -07:00
Ben Kelly
472170c939
Bug 1110446 P1 Create marker files when Cache API context is open. r=ehsan
2015-06-25 22:22:46 -07:00
Nikhil Marathe
ceb6e00867
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
96563d1764
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
7674db423c
Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
14107fa642
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
27071f76d6
Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
f892b6826b
Bug 1173439 P1 Store URLs as UTF8 strings in Cache instead of UTF16. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
881724a6a0
Bug 1174768 Cache should check if QuotaManager is shutting down before calling GetOrCreate. r=janv
2015-06-16 12:00:55 -07:00
Ehsan Akhgari
665f7d1b2f
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
b6744d169a
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
1b87b5418f
Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly
2015-06-15 21:36:01 -04:00
Ben Kelly
8606edd8de
Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm
2015-06-12 18:59:01 -07:00
Ben Kelly
3cf0095620
Bug 1169994 Fix Cache to close connection on right thread when init is canceled. r=ehsan
2015-06-10 06:37:16 -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
Ehsan Akhgari
859432596a
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
7b87fd76a7
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
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
d454965af2
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
e5e4b867bb
Bug 1168152 P2 Use a wrapper mozIStorageConnection for shared Cache connections. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
deef438339
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
Ben Kelly
8a311c0b68
Bug 1168135 P3 Cache Context should pass shared Data container to init Action. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
39eddd4f74
Bug 1168135 P2 Add Cache Context::Init() method. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
bedc9ac00f
Bug 1168135 P1 Execute Cache init Action on same target thread used for other Actions. r=ehsan
2015-05-28 07:46:47 -07:00
Ehsan Akhgari
021ed38d58
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
ef72c48967
Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE
2015-05-27 14:50:43 +02:00
Ehsan Akhgari
7c178923f2
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 Turner
c307970e89
Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
2015-04-30 13:46:51 -07:00
Ben Kelly
8ac9be81ac
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
219bd20f7c
Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan
2015-05-21 18:16:36 -07:00
Wes Kocher
627c3b13e4
Backed out changeset 0aaa67fc61e8 (bug 858680)
2015-05-21 16:44:42 -07:00
Ben Turner
48b512a3ec
Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
2015-04-30 13:46:51 -07:00
Bobby Holley
17dddddb65
Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking
...
We also provide an opt-out for the original behavior, and use it in various
consumers that look like they need fixing up. Most of the usage here is in
code with persistence considerations, where we may need some sort of migration
path.
2015-05-20 17:11:49 -07:00
Ben Kelly
dd3ae70e66
Bug 1166577 Use named sqlite params in Cache API code. r=ehsan
2015-05-20 06:51:19 -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
Timur Valeev
a2b860c9bc
Bug 1162365 - Cache API does not calculate usage in QuotaClient::InitOrigin(). r=bkelly
2015-05-12 13:11:36 +03:00
Bobby Holley
67f1a40d85
Bug 1164292 - Switch nsIPrincipal::origin to ACString. r=gabor
2015-05-15 11:51:51 -07:00
Ben Kelly
51854c0265
Bug 1162342 Enable sqlite WAL transactions in Cache API. r=ehsan
2015-05-13 17:55:48 -07:00
Ben Kelly
a24b25f3d8
Bug 1164100 P2 Fix defunct assertion in Cache API ActionRunnable. r=ehsan
2015-05-13 13:35:34 -07:00
Ben Kelly
bed2da6275
Bug 1164100 P1 Cache API should use correct base dir even when reusing sqlite connection. r=ehsan
2015-05-13 13:35:34 -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
Daniel Holbert
a3ca121e6c
Bug 1134671: Add 'override' keyword to method Context::Data::GetConnection() (in DOM Cache code). rs=ehsan
2015-05-07 09:56:40 -07:00
Ben Kelly
80fdd2c3a5
Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan
2015-05-07 05:16:51 -07:00
Ben Kelly
e6c3c9cec5
Bug 1162211 Use sqlite private cache mode in Cache API. r=ehsan
2015-05-07 05:16:51 -07:00
Ben Kelly
bd6433bc24
Bug 1160138 P3 Test Cache chrome-only Constructor. r=ehsan
2015-05-05 15:45:36 -07:00
Ben Kelly
b80c2ca842
Bug 1160138 P2 Add a [ChromeConstructor] to CacheStorage to support devtools. r=ehsan
2015-05-05 15:45:36 -07:00
Ben Kelly
f529480953
Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku
2015-05-05 07:03:52 -07:00
Fernando Jimenez
30d4f4f7a1
Bug 1147214 - Enable app:// urls to use SW. r=bkelly
2015-05-04 23:18:05 +02:00
Ben Kelly
309feac5db
Bug 1160227 Improve Cache API warnings. r=ehsan
2015-05-01 08:15:52 -07:00
Ben Kelly
c622ee7da5
Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku
2015-05-01 08:13:36 -07:00
Ben Kelly
b3af76846a
Bug 1154325 P2 Use Blobs for CacheStorage keys to avoid encoding issues. r=ehsan
2015-04-29 09:03:15 -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
Doug Turner
3d3e065824
Bug 1147214 - Allow app: urls to use sw. r=baku
2015-04-25 08:27:50 +02:00
Boris Zbarsky
6a3f2d3909
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
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
Boris Zbarsky
4fd0c4fc34
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
cbb5adc74f
Bug 1158319 Cache should throw SecurityError if the principal is incorrect. r=ehsan
2015-04-24 14:36:02 -07:00
Andrea Marchesini
eff949a801
Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan
2015-04-22 08:29:20 +02: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
Ben Kelly
3c51e3c572
Bug 1151974 P1 Delay Cache Context start until previous Context has completed. r=ehsan
2015-04-20 11:14:57 -07:00
Ehsan Akhgari
120298263e
Bug 1156033 - Add some missing error handling to the DOM Cache code; r=bkelly
2015-04-20 13:10:33 -04:00
Denis Volk
cd6346cce0
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Ben Kelly
9146bc8dd3
Bug 1151892 Refactor Cache Manager Context usage to be more sane and fix shutdown assert. r=ehsan
2015-04-16 13:05:38 -07:00
Ben Kelly
f3750bed20
Bug 1110485 P8 Correctly set the Feature on the stream control child actor. r=baku
2015-04-16 12:00:16 -07:00
Ben Kelly
190f60eb53
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-16 12:00:16 -07:00
Ben Kelly
b832767fab
Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan
2015-04-16 12:00:16 -07:00
Ben Kelly
394e45c37c
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-16 12:00:16 -07:00
Ben Kelly
727169e440
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-16 12:00:15 -07:00
Ben Kelly
65d16c8ea8
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-16 12:00:15 -07:00