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
Ben Kelly
1947fc8d08
Bug 1112071 Change Cache ManagerId to use QuotaManager's concept of origin. r=ehsan
2015-08-31 14:26:29 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Michael Layzell
d412cade2c
Bug 1145744 - Update CacheStorage to use common StorageAllowedForWindow logic, r=bkelly
2015-08-28 10:10:33 -04:00
Yoshi Huang
e6070e9062
Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley
2015-08-18 15:01:42 +08:00
Bobby Holley
edfe287f26
Backed out 3 changesets (bug 1165272) for b2g sanity blocker.
2015-08-25 11:16:21 -07:00
Yoshi Huang
de47f4b89f
Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley
2015-08-24 01:18:00 -04:00
Antonio de Luna Lopez
f24373495b
Bug 1110476 - Stripped url fragment from Request::GetUrl() by calling either nsIURI::SetRef() or workers::URL::SetHash() in Request's url getter utility methods. Stripped url fragment from Response::GetUrl() by adding the method InternalRequest::StripFragmentAndSetUrl() which calls nsIURI::SetRef(). Added a test in dom/tests/mochitest/fetch/test_request.js for Request::GetUrl(). Removed manual url stripping from dom/cache/TypeUtils.cpp. r=bkelly
...
--HG--
extra : histedit_source : 034dc90148e27780a1f9a512a513ee30f26dce92
2015-08-13 08:22:19 -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
David Anderson
ac8c6304a9
Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow)
2015-08-02 13:59:33 -07:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
dimi
cb39e7d544
Bug 1186312 - Cache API should not accept system principals for child processes. r=bkelly
...
--HG--
extra : rebase_source : cae2763663eaf8d7fd27bc684f6ecc892690f64d
2015-07-23 17:42:02 +08: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
Ben Kelly
7ff47213f8
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
7d441b2d5c
Bug 1181577 Delay creation of QuotaInitRunnable until Cache Context actually started. r=ehsan
2015-07-09 11:19:50 -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
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Ben Kelly
351585e29f
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
b56d917f3c
Bug 1172562 - Clear QuotaManager storage when uninstalling an app. Test. r=bkelly
2015-07-02 11:17:01 +02:00
Ben Kelly
e90a4f225d
Bug 1178196 Fix race in Cache API orphaned data tests. r=ehsan
2015-06-30 08:31:00 -07:00
Jan Varga
283acfefd3
Bug 1170021 - Part 2: Move DirectoryLock out of QuotaManager class; r=bent
2015-06-30 14:59:53 +02:00
Jan Varga
baba1643c1
Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent
...
--HG--
rename : dom/quota/OriginOrPatternString.h => dom/quota/OriginScope.h
2015-06-30 14:59:27 +02:00
Carsten "Tomcat" Book
a06a9d27a5
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
f62f7f9f4b
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
f78320762c
Bug 1177965 Remove browser.privatebrowing.autostart from browser_cache_pb_window.js r=ehsan
2015-06-29 11:45:26 -07:00
Ben Kelly
ccc0bf0860
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
2de3ef558a
Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan
2015-06-27 23:19:24 -04:00
Ben Kelly
46d52c7f4d
Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan
2015-06-27 23:19:24 -04:00
Ben Kelly
d87aa736d6
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
d722c7d5fb
Bug 1173467
P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 19:36:40 -07:00
Ben Kelly
299afbab05
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
65dcf79af7
Back out a bit more of bug 1173467
(changeset 30cefdf8d020) that I missed.
2015-06-27 12:21:05 +10:00
Cameron McCormack
5ccbe11d06
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
6862b4c402
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
73d7dcb1a3
Bug 1173467
P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 17:42:56 -07:00
Ben Kelly
f1a1a443eb
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
1a7bf3eeb5
Bug 1110446 P4 Add a test that orphanes Cache API body files. r=ehsan
2015-06-25 22:22:47 -07:00
Ben Kelly
a46f5588ad
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
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
Ben Kelly
bbd2a20e5d
Bug 1110446 P1 Create marker files when Cache API context is open. 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
Ben Kelly
b6487f1ac4
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
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
Ben Kelly
a3be126ba9
Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm
2015-06-12 18:59:01 -07:00
Ben Kelly
e440c549b6
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
be551239da
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
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
da9b1ef1b9
Bug 1168152 P4 Add a test to verify Cache incremental vacuum works. r=ehsan
2015-05-28 07:46:48 -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
6ea4923572
Bug 1168152 P2 Use a wrapper mozIStorageConnection for shared Cache 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
Ben Kelly
ac3f20c81e
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
02392e2639
Bug 1168135 P2 Add Cache Context::Init() method. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
47b8771d37
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
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 Turner
805bc94273
Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
...
--HG--
extra : rebase_source : d4ec5e860b885ab01e4e1c19e6aed057b78e5aaa
2015-04-30 13:46:51 -07: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
Wes Kocher
a6c4705f9a
Backed out changeset 0aaa67fc61e8 (bug 858680)
2015-05-21 16:44:42 -07:00
Ben Turner
b553d50f23
Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
...
--HG--
extra : rebase_source : 6797f2d4fdaabef4e5d3b83fbacc09984f447866
2015-04-30 13:46:51 -07:00
Bobby Holley
3b6ba803a8
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
da9ebcd5b3
Bug 1166577 Use named sqlite params in Cache API code. r=ehsan
2015-05-20 06:51:19 -07:00
Ben Kelly
0241f41973
Bug 1165395 Test Cache API after QuotaManager reset. r=janv
2015-05-19 17:47:16 -07:00
Ryan VanderMeulen
a022f9015f
Backed out changeset f7054968c36b (bug 1165395) for B2G debug crashes.
...
CLOSED TREE
2015-05-19 11:42:01 -04:00
Ben Kelly
628c49aec7
Bug 1165395 Test Cache API after QuotaManager reset. r=janv
2015-05-19 06:50:20 -07:00
Timur Valeev
ce02a96a2e
Bug 1162365 - Cache API does not calculate usage in QuotaClient::InitOrigin(). r=bkelly
2015-05-12 13:11:36 +03:00
Bobby Holley
e61971d74b
Bug 1164292 - Switch nsIPrincipal::origin to ACString. r=gabor
2015-05-15 11:51:51 -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
2552521ec3
Bug 1164100 P2 Fix defunct assertion in Cache API ActionRunnable. r=ehsan
2015-05-13 13:35:34 -07:00
Ben Kelly
b053f626b5
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
e91bba2a3a
Bug 1162411 - Fix Request CORS bug. r=bz
...
--HG--
extra : rebase_source : 5397f75a16865378949a4f30dd045f8c6a85b16e
2015-05-07 15:39:13 -07:00
Ehsan Akhgari
53964a12f9
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
5a75770a20
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
8db77b2780
Bug 1134671 Keep sqlite connection open between Cache API operations. r=ehsan
2015-05-07 05:16:51 -07:00
Ben Kelly
568cbb8cb1
Bug 1162211 Use sqlite private cache mode in Cache API. r=ehsan
2015-05-07 05:16:51 -07:00
Ben Kelly
ad6ba8a8b6
Bug 1160138 P3 Test Cache chrome-only Constructor. r=ehsan
2015-05-05 15:45:36 -07:00
Ben Kelly
f1808d0d50
Bug 1160138 P2 Add a [ChromeConstructor] to CacheStorage to support devtools. r=ehsan
2015-05-05 15:45:36 -07:00
Ben Kelly
9b63c77800
Bug 1160013 CachePushStreamChild should hold the parent DOM object alive. r=baku
2015-05-05 07:03:52 -07:00
Fernando Jimenez
b4fb82eed4
Bug 1147214 - Enable app:// urls to use SW. r=bkelly
2015-05-04 23:18:05 +02:00
Ben Kelly
2099c87b4a
Bug 1160227 Improve Cache API warnings. r=ehsan
2015-05-01 08:15:52 -07:00
Ben Kelly
c4e1832106
Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku
2015-05-01 08:13:36 -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
Ben Kelly
a874312867
Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug
2015-04-29 08:59:43 -07:00
Tooru Fujisawa
0edbeb71c8
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
107cf1a962
Bug 1147214 - Allow app: urls to use sw. r=baku
2015-04-25 08:27:50 +02: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
Timur Valeev
789df89fb0
Bug 1150001 - Cache API should not return Response body when matching Request with HEAD method. r=bkelly
...
--HG--
extra : rebase_source : 5a380217b687de562c5b631c0ace973ee4af574f
2015-04-23 16:17:37 +03: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
3c4616650c
Bug 1158319 Cache should throw SecurityError if the principal is incorrect. r=ehsan
2015-04-24 14:36:02 -07:00
Andrea Marchesini
cb54385682
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
c6e94fa106
Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm
2015-04-21 00:23:22 -04:00
Ben Kelly
1279e70d19
Bug 1151974
P1 Delay Cache Context start until previous Context has completed. r=ehsan
2015-04-20 11:14:57 -07:00
Ehsan Akhgari
29dbd10a4f
Bug 1156033 - Add some missing error handling to the DOM Cache code; r=bkelly
2015-04-20 13:10:33 -04:00
Denis Volk
32e981896d
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Ben Kelly
823822dae8
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
ff13e8c018
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
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
0c43991ad9
Bug 1110485 P6 Remove useless cache::FileUtils type. 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
5f92c3937b
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-16 12:00:15 -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
Ben Kelly
2dae6bf172
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
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
Ehsan Akhgari
643ab9ca43
Bug 1149987 - Part 7: Send the full ErrorResult in the AddAllResponse IPC message; r=bkelly
...
This is needed so that we can throw a TypeError from
FetchPut::FetchComplete. In order to be able to do this, we need to
store the entire ErrorResult in the FetchPut object and deliver it to
the other side.
2015-04-15 15:55:39 -04:00
Ehsan Akhgari
f56fe99956
Bug 1149987 - Part 6: Release the FetchPut object on the right thread in FetchObserver::OnResponseEnd(); r=bkelly
2015-04-15 15:55:28 -04:00
Ehsan Akhgari
402e7e602a
Bug 1149987 - Part 5: Hold a kungfu death grip in FetchPut::MaybeNotifyListener; r=bkelly
2015-04-15 15:55:16 -04:00
Carsten "Tomcat" Book
fe0f813b3f
Backed out changeset 19f871364039 (bug 1110485) for causing bc1 winxp memory leaks on a CLOSED TREE
2015-04-15 09:55:53 +02: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
55d03ff1d7
Backed out changeset f37dc22f4c4f (bug 1110485)
2015-04-15 09:54:39 +02:00
Carsten "Tomcat" Book
c726b582d2
Backed out changeset de417ee861be (bug 1110485)
2015-04-15 09:54:36 +02:00
Carsten "Tomcat" Book
7f9511a7e1
Backed out changeset fdca92fa4d55 (bug 1110485)
2015-04-15 09:54:34 +02:00
Carsten "Tomcat" Book
a093a9fcf5
Backed out changeset e8de5745c5c3 (bug 1110485)
2015-04-15 09:54:27 +02:00
Carsten "Tomcat" Book
8f0d2c344a
Backed out changeset 2bf98851529e (bug 1110485)
2015-04-15 09:54:19 +02:00
Carsten "Tomcat" Book
b08d4f66da
Backed out changeset a2629286ed4c (bug 1151892)
2015-04-15 09:54:11 +02:00
Ben Kelly
e156ce990d
Bug 1151892 Refactor Cache Manager Context usage to be more sane and fix shutdown assert. r=ehsan
2015-04-14 17:15:12 -07:00
Ben Kelly
2fa42acf5e
Bug 1110485 P8 Temporarilly disable an assert in Cache FileUtils.cpp. Follow up to fix in bug 1154531. r=me
2015-04-14 17:11:20 -07: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
a9c2903eaf
Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan
2015-04-14 17:11:19 -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
cc8a74d4e3
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
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
Ben Kelly
feca794ce2
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-14 17:11:19 -07:00
Wes Kocher
22b792b4e2
Backed out changeset 40f48cd100a2 (bug 1110485) for frequent mochitest-1 failures CLOSED TREE
...
--HG--
extra : amend_source : 3c3a58e53f42afd4a0612b73115e74cc96228066
2015-04-14 15:27:48 -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
09b055e57b
Backed out changeset 31c018015bd2 (bug 1110485)
2015-04-14 15:27:42 -07:00
Wes Kocher
0e2cc1e14f
Backed out changeset 55723c780549 (bug 1110485)
2015-04-14 15:27:40 -07:00
Wes Kocher
12f5d82830
Backed out changeset 974c5c109a49 (bug 1110485)
2015-04-14 15:27:39 -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
97225cf18a
Bug 1110485 P6 Remove useless cache::FileUtils type. 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
e264e3d81f
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
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
Ben Kelly
7a6abc9a9e
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-14 12:21:14 -07:00
Jan Varga
4f7bbfd7c8
Bug 1125102 - Make QuotaManager and FileService to be independent of each other; r=bent
2015-04-14 10:57:41 +02: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
Ben Kelly
c3a286e766
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-13 14:05:57 -07:00
Ehsan Akhgari
fa3e955d12
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
e69f6f626a
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
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
Ehsan Akhgari
27aa22f021
Bug 1149987 - Part 4: Send the full ErrorResult in the AddAllResponse IPC message; r=bkelly
...
This is needed so that we can throw a TypeError from
FetchPut::FetchComplete. In order to be able to do this, we need to
store the entire ErrorResult in the FetchPut object and deliver it to
the other side.
2015-04-08 10:27:39 -04:00
Ben Kelly
3b9d1c465e
Bug 1150691 Fix Cache API race with storage invalidation. r=ehsan
2015-04-02 17:39:46 -07: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
47c59f235a
Bug 1147699 - Part 1: Move Request::mContext to InternalRequest, and determine the mapping to nsContentPolicyType; r=nsm
...
As the documentation in InternalRequest.h in this patch shows, the
mapping between nsContentPolicyType and RequestContext is not complete
yet. Because the InternalRequest object needs to know the actual
nsContentPolicyType in order for FetchDriver to be able to use that
information, we can't just store the RequestContext. Therefore, this
patch adds both of these to InternalRequest. Once we get to a stage
where we have a complete mapping of these values, we can store only one
of them and compute the other from it. That requires addressing all of
the TODO comments in the InternalRequest.h documentation.
2015-03-30 08:42:31 -04:00
Ehsan Akhgari
bb4f610dac
Bug 1147184 - Extend the tests for Cache.put; r=bkelly
2015-03-25 21:22:18 -04:00
Ben Kelly
3654e7656b
Bug 1143192 Allow Context initialization to be cancelled. r=ehsan
2015-03-25 07:16:40 -07: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
Ben Kelly
51b7d8b6c0
Bug 1146557 P1 Fix CacheStorage and Cache to QI to nsISupports correctly. r=ehsan
2015-03-24 07:34:17 -07:00
Ehsan Akhgari
fe1c309d02
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
c65501f8bc
Bug 1146585 - Add a test for Cache.delete; r=bkelly
2015-03-24 10:32:01 -04:00
Ben Kelly
b7d8aaec19
Bug 1142852 P2 Make Cache Action use non-threadsafe ref-counting. r=ehsan
2015-03-23 22:28:09 -04:00
Ben Kelly
a1e93d47a8
Bug 1110487 P4 Allow Cache Action objects to be canceled more than once. r=ehsan
2015-03-23 22:23:45 -04:00
Ben Kelly
81bce2740d
Bug 1110487 P3 Cache should ensure Actions are finished before completing. r=ehsan
2015-03-23 22:23:45 -04:00
Ben Kelly
12af2a6a57
Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan
2015-03-16 07:10:36 -07:00
Ehsan Akhgari
f701f72fb3
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
1835ea57f2
Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly
2015-03-23 15:46:58 -04:00
Daniel Holbert
48c2e9bef2
Bug 1110814 followup: Add missing 'override' annotations to new methods in CacheParent. rs=ehsan
2015-03-22 10:33:56 -07:00
Ehsan Akhgari
9dbf30b541
Bug 1110814 follow-up: Fix a typo in order to fix the test failures
2015-03-22 10:35:29 -04:00
Ben Kelly
275609c516
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
f0bc72be6b
Bug 1145792 - Add a test for the Cache.keys method; r=bkelly
2015-03-21 20:13:33 -04:00
Ehsan Akhgari
d9a8b3d4a8
Bug 1145445
- Add a test for CacheStorage; r=bkelly
2015-03-21 20:11:24 -04:00
Ehsan Akhgari
0efffdf2eb
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
69cd0a74b8
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
734a1b3adf
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
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
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Daniel Holbert
0c20ebd00d
Bug 1143223 followup: Add MOZ_OVERRIDE annotation to ReadStream::Inner's refcounting macro. rs=ehsan
2015-03-21 00:17:49 -07:00
Ben Kelly
84463ac14b
Bug 1143223 - Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan
2015-03-20 11:01:57 -07:00
Ryan VanderMeulen
befdfa6794
Backed out changeset fd0834bbfd3c (bug 1143223) for making test_mediaElementAudioSourceNodePassThrough.html almost perma-timeout on Android 4.0.
...
--HG--
extra : rebase_source : b315a864686e99bd22bd3ef0e842c5236a92cfa6
2015-03-20 17:03:27 -04:00
Ehsan Akhgari
146e202730
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
Ben Kelly
63da054263
Bug 1143223 Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan
2015-03-20 11:01:57 -07:00
Ehsan Akhgari
1e0c4573e6
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
b92e929c3e
Bug 1145321 - Disconnect the CacheStorage object from its actor when it gets cycle collected; r=bkelly
2015-03-19 17:06:59 -04:00
Ehsan Akhgari
8734ffb7e3
Bug 1143504 - Disconnect the Cache object from its actor when it gets cycle collected; r=bkelly
2015-03-19 17:06:57 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Ehsan Akhgari
2515f140bb
Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly
2015-03-17 10:58:00 +01:00
Ehsan Akhgari
6d29d6c974
Bug 1144214 - Fix DeleteOrphanedBodyAction so that it doesn't orphan cache files if the action is canceled; r=bkelly
2015-03-18 14:19:00 +01:00
Nigel Babu
2e6821328d
Backed out changeset dd13fdf7b284 (bug 1144236) for bustage CLOSED TREE
...
--HG--
extra : amend_source : 3a70fa61052cbdaa1df2a1656880717965d1165e
2015-03-18 12:05:33 +05:30
Nigel Babu
47340db7f0
Backed out changeset 96c20db25b6b (bug 1144214) for Android M4 bustage CLOSED TREE
2015-03-18 11:48:41 +05:30
Ehsan Akhgari
e73318de31
Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly
2015-03-17 23:56:32 -04:00
Ehsan Akhgari
b48d53e850
Bug 1144214 - Fix DeleteOrphanedBodyAction so that it doesn't orphan cache files if the action is canceled; r=bkelly
2015-03-17 23:56:31 -04:00
Nikhil Marathe
011987e024
Bug 1143155 - Filtered response stores internal response and allows access to headers. r=bkelly
...
--HG--
extra : rebase_source : 3fcc1d7de76e679f5055382af1159f004dd5372c
2015-03-17 08:47:01 -07:00
Ehsan Akhgari
babb2a95d5
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
Daniel Holbert
082fd9cd7f
Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
...
This patch was generated by a script. Here's the source of the script for
future reference:
find . \( -iname "*.cpp" -o -iname "*.h" \) | \
xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07: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
23214cf141
Bug 1143833 - Add tests for the ignoreSearch match mode in DOM cache; r=bkelly
2015-03-16 17:11:05 -04:00
Ehsan Akhgari
3355cc8ff3
Bug 1143820 - Add tests to ensure that the URL fragments are correctly ignored by the DOM Cache API; r=bkelly
2015-03-16 17:08:09 -04:00
Ehsan Akhgari
56026081c7
Bug 1143813 - Add tests for attempting to store a non-GET request in the DOM Cache; r=bkelly
2015-03-16 17:03:45 -04:00
Ehsan Akhgari
791ff66ebf
Bug 1143511 - Correct the usages of .catch() in DOM cache tests; r=bkelly
...
These tests used .catch() incorrectly, in a way that did not actually
guarantee that the promise is rejected, so in 3 cases the promise
resolved to known failure values (undefined or an empty array) and
this was not being caught as a test failure.
This patch fixes those three places, and also rewrites the .catch()
usage in another case to guarantee that the promise is indeed rejected.
2015-03-16 16:53:10 -04:00
Ehsan Akhgari
0046a6d6ef
Bug 1143219
- Add tests for passing an unknown request to match and matchAll; r=bkelly
2015-03-16 16:46:49 -04:00
Ehsan Akhgari
0ee6b70264
Bug 1143193 - Run the tests for match and matchAll on both Request objects and string URLs; r=bkelly
2015-03-16 16:29:22 -04:00
Ryan VanderMeulen
ba908a867f
Backed out changeset 734e81bff9f3 (bug 1110487) for intermittent e10s cache test crashes.
...
CLOSED TREE
2015-03-16 13:51:33 -04:00
Ben Kelly
30333a7a7d
Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan
2015-03-16 07:10:36 -07:00
Ben Kelly
92143814c0
Bug 1110487 P1 Fix some non-unified bustage before adding new code. r=ehsan
2015-03-16 07:10:36 -07:00
Ehsan Akhgari
a95ed2c938
Bug 1143222 - Re-enable the newly added DOM cache test in sequential mode only for now
2015-03-15 17:53:50 -04:00
Ehsan Akhgari
ab42a2ec61
Bug 1143222 - Disable the newly added DOM cache tests for now because of intermittent failures
...
Landed on a CLOSED TREE
2015-03-13 19:23:34 -04:00
Ehsan Akhgari
47a098b474
Bug 1142790 - Add a test for passing Request objects to DOM cache matchAll method; r=bkelly
2015-03-13 19:21:16 -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
Wes Kocher
fe556f9355
Backed out changeset 1bd38b652695 (bug 1142790) for mochitest-1 timeouts CLOSED TREE
2015-03-13 16:02:08 -07:00
Ehsan Akhgari
230f9e920c
Bug 1142790 - Add a test for passing Request objects to DOM cache matchAll method; r=bkelly
2015-03-13 14:40:33 -04: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
Ehsan Akhgari
58b1ce9c4b
Bug 1133763 - Part 2: Transfer the security info associated with an InternalResponse across the IPC layer; r=bkelly
2015-03-13 14:37:16 -04:00
Ehsan Akhgari
eed5a8dba4
Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly
...
Here are the changes needed to achieve this:
* We tag each message posted to the framework with a context argument.
context can be one of "Window", "Worker" or "ServiceWorker". In the
places where we handle messages, we only handle the ones corresponding
to the context that we expect.
* We use Promise.all in order to interleave the execution of the tests.
This has the nice property of actually getting the tests run
simultaneously on multi-core machines.
* For ease of debugging test failures, we print the context from which
each test message is coming from.
* In order for the tests that are run in parallel to not step on each
other's toes, we introduce a global `context' variable that the test
script can use to create names that do not clash with concurrent
test runs. For example, instead of `caches.open("foo")', one must now
use: `caches.open("foo" + context)'.
* The existing tests are modified based on the above.
* When running the tests in parallel, the service worker may end up
controlling both frame.html and message_receiver.html. The hunk at
the end of worker_wrapper.js is intended to ensure that we will
always be communicating with message_receiver.html.
* An order argument has been added to runTests which can be set to
"sequential" in order to run the tests in different contexts in
parallel. If the argument is omitted, the default is "parallel".
2015-03-13 14:32:02 -04:00
Ehsan Akhgari
43c73c2bcf
Bug 1142333 - Add a test for passing Request objects to DOM cache match methods; r=bkelly
2015-03-13 14:28:24 -04:00
Ehsan Akhgari
3d44a57364
Bug 1142195 - Remove some unused class declarations in the DOM Cache code; r=bkelly
2015-03-11 16:46:15 -04:00
Ehsan Akhgari
09a624cdf5
Bug 1140658 - Part 8: Disable the service worker part of these tests on b2g while bug 1137683 gets fixed; r=bkelly
2015-03-11 16:46:04 -04:00
Ben Kelly
a31b9f226c
Bug 1140658 - Part 7: Close underlying file stream in ReadStream before reporting closed; r=ehsan
2015-03-11 16:45:35 -04:00
Ehsan Akhgari
9a622be5a7
Bug 1140658 - Part 6: Randomize the URL of the ServiceWorker script in order to work around bug 1141256 for now
2015-03-11 16:45:08 -04:00
Ehsan Akhgari
233f23428c
Bug 1140658 - Part 5: Remove test_cache_quick_close.html because it makes no sense after bug 1131353; r=bkelly
2015-03-11 16:45:06 -04:00
Ehsan Akhgari
3933a8a97c
Bug 1140658 - Part 4: Port test_cache_add.html to the new mini-framework; r=bkelly
2015-03-11 16:45:05 -04:00
Ehsan Akhgari
9e4efd1206
Bug 1140658 - Part 3: Port test_cache.html to the new mini-framework; r=bkelly
2015-03-11 16:45:03 -04:00
Ehsan Akhgari
fc378c5b91
Bug 1140658 - Part 2: Merge test_cache.js and test_cache_frame.html; r=bkelly
2015-03-11 16:45:01 -04:00
Ehsan Akhgari
8ceef26b0c
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
Carsten "Tomcat" Book
04343cce81
Backed out changeset c96b6474bdac (bug 1140658) for m1 crashes
2015-03-10 09:01:47 +01:00
Carsten "Tomcat" Book
6612a28f54
Backed out changeset 8827f51084f1 (bug 1140658)
2015-03-10 09:01:10 +01:00
Carsten "Tomcat" Book
0b428fa812
Backed out changeset 0438058b908a (bug 1140658)
2015-03-10 09:01:08 +01:00
Carsten "Tomcat" Book
7d7287fd90
Backed out changeset 2e62e8ce8c3e (bug 1140658)
2015-03-10 09:01:07 +01:00
Carsten "Tomcat" Book
223c72260c
Backed out changeset f646f28b05d6 (bug 1140658)
2015-03-10 09:01:05 +01:00