Commit Graph

542 Commits

Author SHA1 Message Date
Tom Tung
deed50af7d Bug 1398167 - Remove the temporary fix for not upgrading shema version from 25 to 26. r=bkelly 2017-10-09 11:36:14 +08:00
Tom Tung
82eb515a1a Bug 1402581 - P4: Make the assertions for increaing and decreaing padding size be runtime checks. r=bkelly
--HG--
extra : rebase_source : c5c2dd26334ed05c8143341ddfd47b85f0a0c9ef
2017-10-06 15:18:06 +08:00
Tom Tung
45c9e8c00b Bug 1402581 - P3: Allow failures happen when restoring or wiping padding file. r=bkelly
--HG--
extra : rebase_source : 6582320e3c942c37a8b031e16569a4900871f458
2017-10-05 17:30:40 +08:00
Tom Tung
753c5b5960 Bug 1402581 - P2: Ensure the temporary file exists when failure happens. r=bkelly
There are three changes in this patch: 1. Make sure deleting padding file before
the temporary padding file. 2. Not deleting temporary file when failure happens.
3. Endure failure happens after the transaction commit.

--HG--
extra : rebase_source : d6de5cc63c7cb9bb073e00a61237440bb65fd011
2017-10-03 18:44:56 +08:00
Tom Tung
c337197339 Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly
--HG--
extra : rebase_source : b6b9b6688973eec2058eb55218988dfea54db083
extra : amend_source : 1446cdf0fe948705bb23687902b8e0f483304622
2017-10-03 18:36:44 +08:00
Ben Kelly
211be553a3 Bug 1402586 Hold the worker alive while Cache API completes a lazy body open IPC operation. r=asuth 2017-09-25 10:45:58 -07:00
Tom Tung
6d9ce87f57 Bug 1400282 - Add a test to verify cache's operations won't run out of fd. r=bkelly
MozReview-Commit-ID: G8ztQs1mB6l
2017-09-13 17:24:13 +08:00
Ben Kelly
f3bd79bbe8 Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
9e8538fa6a Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
65f88cc067 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
acf4cdb7d2 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
2cf80de4ff Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
9ef03c8751 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
b88c4699cd Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly
9bbbfca014 Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly
66eb21a04b Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 12:25:40 -07:00
Sebastian Hengst
285f502fd9 Backed out changeset 3f1e68da9634 (bug 1397128) for bustage at mozilla/dom/cache/CacheStorage.h:108. r=backout on a CLOSED TREE 2017-09-15 18:29:41 +02:00
Sebastian Hengst
150c6ab212 Backed out changeset 15edfaab92f6 (bug 1397128) 2017-09-15 18:28:54 +02:00
Sebastian Hengst
8114378053 Backed out changeset bfbcc07fcb4b (bug 1397128) 2017-09-15 18:28:48 +02:00
Sebastian Hengst
2ecdeffe66 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Sebastian Hengst
8463726683 Backed out changeset 5988716b66bb (bug 1397128) 2017-09-15 18:28:37 +02:00
Sebastian Hengst
ea5ea33329 Backed out changeset bb52082d2d3c (bug 1397128) 2017-09-15 18:28:32 +02:00
Sebastian Hengst
b42f970139 Backed out changeset b28740aedf34 (bug 1397128) 2017-09-15 18:28:27 +02:00
Sebastian Hengst
f14ea2acaf Backed out changeset e37614cb41e1 (bug 1397128) 2017-09-15 18:28:21 +02:00
Sebastian Hengst
4b9a1e0644 Backed out changeset b5ea37e08220 (bug 1397128) 2017-09-15 18:28:16 +02:00
Ben Kelly
188fc706fb Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
6847f129b1 Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
66d9e5a447 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
60cc17beb8 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
1cc7cde5c0 Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
cd504ea7b0 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
6e5e0f4a24 Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
31a34132cb Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
ba86302f10 Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 09:11:22 -07:00
Tom Tung
3e445962b3 Bug 1398231 - P2: Add a test to verify cache work when there is a temporary padding file. r=bkelly
MozReview-Commit-ID: JhPuL7AmteM

--HG--
extra : rebase_source : b2c60f288f4f5424ea11212db26676cb467daf77
2017-09-09 15:34:59 +08:00
Tom Tung
d56be4c5f0 Bug 1398231 - P1: Make file exist check before assertion. r=bkelly
MozReview-Commit-ID: 8t7P97Ttrv1

--HG--
extra : rebase_source : 2d44a42da181612af36f129f692bd4961caf2824
2017-09-09 09:30:05 +08:00
Tom Tung
c3b6fcbefc Bug 1398649: Capture the result from MigrateFrom25To26(). r=bkelly
MozReview-Commit-ID: DoVqSs53is5

--HG--
extra : rebase_source : 69aad8fae9821371bd0f47c6c13c961469199557
2017-09-11 14:57:06 +08:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Andrea Marchesini
157334f4b0 Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug 2017-09-08 16:06:26 +02:00
Tom Tung
d06f3586f2 Bug 1398043 - P3: Add a test to verify (DOM) Cache upgrade successfully. r=bkelly
MozReview-Commit-ID: IYyvEe3r0g4

--HG--
extra : rebase_source : e6430a0cb66bfed5d07b069c923793ef423e4e43
2017-09-08 19:22:18 +08:00
Tom Tung
fe80897097 Bug 1398043 - P2: Temporary fix for updating the existing response_padding_size to 0 when it's an opaque response with null padding size. r=bkelly
MozReview-Commit-ID: EKcUwqfTWvj

--HG--
extra : rebase_source : df3b416e8ff3763f37576c0a148dedcfe2f6afc4
2017-09-08 17:23:52 +08:00
Tom Tung
663a45bfc4 Bug 1398043 - P1: Add a space between strings concatenation. r=bkelly
MozReview-Commit-ID: mHQq4J2Kv6

--HG--
extra : rebase_source : 010819fecc690c1b8bfc456b6cc082110fa71c21
2017-09-08 15:56:53 +08:00
Tom Tung
194cbec7a2 Bug 1290481 - P15: Add an test to verify opaque response has padding and the usage are still the same between in-memory object in QM and the file-system. r=bkelly
--HG--
extra : rebase_source : e086661e0bcb1d7197f01dec5b3eb72d4a2c8615
2017-08-01 17:44:52 +08:00
Tom Tung
44aaef6986 Bug 1290481 - P13: Get padding from DB when there is no directroy padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 55aa5434b14c891e04ff03d7657c6b3ff40cd6f7
2017-07-18 19:08:41 +08:00
Tom Tung
b7d2e266c2 Bug 1290481 - P12: Get the padding size while QM gets usage from DOM Cache. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 697343a1444235a64bb81f1fcebe1e0782923b06
2017-07-18 19:07:53 +08:00
Tom Tung
dbdac39cbc Bug 1290481 - P11: Add an assertion to ensure DOM Cache running in the Quota IO thread while getting overall usage. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : d856f9509051da088948247c6c87e06b09e19a49
2017-07-18 19:03:25 +08:00
Tom Tung
d064e1463f Bug 1290481 - P10: Update padding size to the direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 250d8cf6dd6804e8e944982d400a8de79539f7ac
2017-07-18 19:00:09 +08:00
Tom Tung
67d7727ec0 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : a6956325cfdf6f11a4bcf66d41b8d4706ae4e1e7
2017-07-18 18:58:56 +08:00
Tom Tung
8eb68da410 Bug 1290481 - P8: Implement few utility functions to access direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk

--HG--
extra : rebase_source : 23145f66eb62f2f858311513f6bec4ead01d18cd
2017-07-18 18:57:54 +08:00
Tom Tung
161d91b1ba Bug 1290481 - P7: Create a mutex lock on CacheQuotaClient for protected accessing directory padding file. r=bkelly
--HG--
extra : rebase_source : 5115d1d04083807dbe4a9cc8a388c62871e07fe9
2017-07-20 11:33:39 +08:00