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
Ben Kelly
8f0a2f0db1
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-16 12:00:15 -07:00
Ben Kelly
aa8729730c
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-16 12:00:15 -07: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
865eef2d85
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
1571d5bd52
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
185386047a
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
221df621f6
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
2b2cc53c16
Backed out changeset a74f0b2545ab (bug 1110485)
2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book
0e646e32dd
Backed out changeset 1bbb1ec38652 (bug 1110485)
2015-04-15 09:54:45 +02:00
Carsten "Tomcat" Book
baa43f42e8
Backed out changeset f37dc22f4c4f (bug 1110485)
2015-04-15 09:54:39 +02:00
Carsten "Tomcat" Book
5b8fd6b420
Backed out changeset de417ee861be (bug 1110485)
2015-04-15 09:54:36 +02:00
Carsten "Tomcat" Book
55bf253f0d
Backed out changeset fdca92fa4d55 (bug 1110485)
2015-04-15 09:54:34 +02:00
Carsten "Tomcat" Book
15e45ceb3d
Backed out changeset e8de5745c5c3 (bug 1110485)
2015-04-15 09:54:27 +02:00
Carsten "Tomcat" Book
0246dd60d8
Backed out changeset 2bf98851529e (bug 1110485)
2015-04-15 09:54:19 +02:00
Carsten "Tomcat" Book
e2906455bd
Backed out changeset a2629286ed4c (bug 1151892)
2015-04-15 09:54:11 +02:00
Ben Kelly
679c37bebf
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
c5a53e90ad
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
bd58607ccc
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-14 17:11:20 -07:00
Ben Kelly
e150774f15
Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan
2015-04-14 17:11:19 -07:00
Ben Kelly
e39cda7579
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-14 17:11:19 -07:00
Ben Kelly
3f0c06ce57
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-14 17:11:19 -07:00
Ben Kelly
f50ca3c005
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-14 17:11:19 -07:00
Ben Kelly
4a1b47327d
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-14 17:11:19 -07:00
Ben Kelly
392a37e2f1
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-14 17:11:19 -07:00
Wes Kocher
222f92d4a1
Backed out changeset 40f48cd100a2 (bug 1110485) for frequent mochitest-1 failures CLOSED TREE
2015-04-14 15:27:48 -07:00
Wes Kocher
837a3a6567
Backed out changeset 114377b11793 (bug 1110485)
2015-04-14 15:27:46 -07:00
Wes Kocher
66c30b1df2
Backed out changeset 565246a02797 (bug 1110485)
2015-04-14 15:27:45 -07:00
Wes Kocher
8f8cb9ecec
Backed out changeset 31c018015bd2 (bug 1110485)
2015-04-14 15:27:42 -07:00
Wes Kocher
4d33d0dc41
Backed out changeset 55723c780549 (bug 1110485)
2015-04-14 15:27:40 -07:00
Wes Kocher
2d1c8c4766
Backed out changeset 974c5c109a49 (bug 1110485)
2015-04-14 15:27:39 -07:00
Wes Kocher
252a58f1e3
Backed out changeset b6b9517e3d50 (bug 1110485)
2015-04-14 15:27:37 -07:00
Ben Kelly
8ec5685245
Bug 1110485 P7 Rename DeleteCache() to DeleteCacheId() better distinguish it from CacheDelete(). r=ehsan
2015-04-14 12:21:14 -07:00
Ben Kelly
a72529e91c
Bug 1110485 P6 Remove useless cache::FileUtils type. r=ehsan
2015-04-14 12:21:14 -07:00
Ben Kelly
6f61f92139
Bug 1110485 P5 Replace useless DBSchema class type with namespace. r=ehsan
2015-04-14 12:21:14 -07:00
Ben Kelly
a0b7511f90
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-14 12:21:14 -07:00
Ben Kelly
8accf790f2
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-14 12:21:14 -07:00
Ben Kelly
bf3eafd295
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-14 12:21:14 -07:00
Ben Kelly
f882022722
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-14 12:21:14 -07:00
Jan Varga
77ec4aaaa3
Bug 1125102 - Make QuotaManager and FileService to be independent of each other; r=bent
2015-04-14 10:57:41 +02:00
Wes Kocher
e856f526b8
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)
2015-04-13 15:18:19 -07:00
Ben Kelly
27358559d2
Bug 1110485 P3 Move Fetch IPC PHeaderEntry type to Cache. Rename HeadesEntry. r=nsm
2015-04-13 14:05:57 -07:00
Ben Kelly
17224749c6
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-13 14:05:57 -07:00
Ben Kelly
d18407f567
Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku
2015-04-13 14:05:57 -07: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
49ca5f135b
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
302082a520
Bug 1150691 Fix Cache API race with storage invalidation. r=ehsan
2015-04-02 17:39:46 -07:00
Ben Kelly
5c1632dab9
Bug 1150608 Do not reuse CacheId values within an origin. r=ehsan
2015-04-02 17:11:41 -07:00
Ehsan Akhgari
8c31f6b805
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
cd8bb1e29a
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
d0edee4796
Bug 1147184 - Extend the tests for Cache.put; r=bkelly
2015-03-25 21:22:18 -04:00
Ben Kelly
0af00f2e7f
Bug 1143192 Allow Context initialization to be cancelled. r=ehsan
2015-03-25 07:16:40 -07:00
Ehsan Akhgari
1bb4242c14
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
dd3b5996a9
Bug 1146557 P1 Fix CacheStorage and Cache to QI to nsISupports correctly. r=ehsan
2015-03-24 07:34:17 -07: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
914a639017
Bug 1142852 P2 Make Cache Action use non-threadsafe ref-counting. r=ehsan
2015-03-23 22:28:09 -04:00
Ben Kelly
77fbc11631
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
1f11ad99f2
Bug 1110487 P3 Cache should ensure Actions are finished before completing. r=ehsan
2015-03-23 22:23:45 -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
Daniel Holbert
011e578f4a
Bug 1110814 followup: Add missing 'override' annotations to new methods in CacheParent. rs=ehsan
2015-03-22 10:33:56 -07: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
668d273708
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
c165bfb4e8
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
01349908f4
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
5cccea6f0f
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
d421ed35bc
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
251e149634
Bug 1143223 - Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan
2015-03-20 11:01:57 -07:00
Ryan VanderMeulen
d23f3fc2d4
Backed out changeset fd0834bbfd3c (bug 1143223) for making test_mediaElementAudioSourceNodePassThrough.html almost perma-timeout on Android 4.0.
2015-03-20 17:03:27 -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
Ben Kelly
f417bd0137
Bug 1143223 Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan
2015-03-20 11:01:57 -07: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
34784d49cb
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
ed080a81cf
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
988b8e01be
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
679e6efd4a
Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly
2015-03-17 10:58:00 +01:00
Ehsan Akhgari
1742ae53d8
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
b31bcba27d
Backed out changeset dd13fdf7b284 (bug 1144236) for bustage CLOSED TREE
2015-03-18 12:05:33 +05:30
Nigel Babu
489974e847
Backed out changeset 96c20db25b6b (bug 1144214) for Android M4 bustage CLOSED TREE
2015-03-18 11:48:41 +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
58dbbe9814
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
79a59984ee
Bug 1143155 - Filtered response stores internal response and allows access to headers. r=bkelly
2015-03-17 08:47:01 -07: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
Daniel Holbert
2416fccac8
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
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
Ehsan Akhgari
d83fa2d71e
Bug 1143833 - Add tests for the ignoreSearch match mode in DOM cache; r=bkelly
2015-03-16 17:11:05 -04:00
Ehsan Akhgari
0e09c7917d
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