Simon Giesecke
5205b46013
Bug 1634436 - Fix DecryptingInputStream::Available and add tests. r=janv,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D79811
2020-06-23 11:29:42 +00:00
Simon Giesecke
8193fe19be
Bug 1641512 - Use distinct types for file and database usage. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77462
2020-06-25 09:30:06 +00:00
Simon Giesecke
55e3bdd7f8
Bug 1641512 - Use Result<UsageInfo, nsresult> as return type of InitOrigin and add separate InitOriginWithoutTracking. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77453
2020-06-25 09:31:39 +00:00
Simon Giesecke
c23800e5f2
Bug 1641512 - Use Result<UsageInfo, nsresult> as return type of GetUsageForOrigin. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77452
2020-06-25 08:34:43 +00:00
Narcis Beleuzu
0084f5d032
Backed out 3 changesets (bug 1621920) for bustages on ActorsParent.cpp . CLOSED TREE
...
Backed out changeset 6d94049a8f9e (bug 1621920)
Backed out changeset b85b0e346dee (bug 1621920)
Backed out changeset e3e3a090ee96 (bug 1621920)
2020-06-25 10:08:13 +03:00
Jan Varga
48989fbc7c
Bug 1621920 - Convert LS client to use the new macro for warning about unknown stuff and add testing for unknown directories in LS client directory; r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D80167
2020-06-25 06:29:48 +00:00
Jan Varga
5dac5d306c
Bug 1621920 - Provide a new testable macro for warning about unknown files or directories; r=dom-workers-and-storage-reviewers,ttung,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D80166
2020-06-25 06:27:01 +00:00
Jan Varga
82cb01d28e
Bug 1621920 - Fix some comments in test_unknownFiles.js; r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D80165
2020-06-25 06:26:43 +00:00
Tom Tung
3e754f2b5c
Bug 1645943 - Override xFullPathname to avoid the use of GetFullPathNameW; r=janv,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D80202
2020-06-24 16:08:45 +00:00
Tom Tung
7686c6ddbd
Bug 1645943 - A testcase to ensure temporary storage initialization is not blocked by a cache directory in an origin directory that ends with a period; r=janv,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D80001
2020-06-22 22:15:01 +00:00
Jean-Yves Avenard
87438519f0
Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
...
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.
This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget
Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Brindusan Cristian
a338574f2d
Backed out 2 changesets (bug 1645943) for build bustages on QuotaClient.cpp. CLOSED TREE
...
Backed out changeset 7a2022403814 (bug 1645943)
Backed out changeset 3ed2b9424225 (bug 1645943)
2020-06-23 01:11:33 +03:00
Tom Tung
a767576b6e
Bug 1645943 - A testcase to ensure temporary storage initialization is not blocked by a cache directory in an origin directory that ends with a period; r=janv,dom-workers-and-storage-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D80001
2020-06-22 16:17:35 +00:00
tkhan
6ccabd4784
Bug 1602668 - M(1) manifest and test changes. r=kmag,karlt,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D70362
2020-06-22 19:09:49 +00:00
Simon Giesecke
92ffcc48e8
Bug 1641512 - Replace Append method by operator+=. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77451
2020-06-11 10:42:24 +00:00
Simon Giesecke
2e8e66ab3c
Bug 1641512 - Rename AppendTo*Usage methods to Increment*Usage. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77450
2020-06-11 10:42:16 +00:00
Simon Giesecke
dea8831f5c
Bug 1641512 - Introduce Usage type with operator+/+=. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77449
2020-06-11 10:42:12 +00:00
Simon Giesecke
38fd6472cd
Bug 1641512 - Remove unused include directive. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77447
2020-06-11 10:42:10 +00:00
Simon Giesecke
f786f97363
Bug 1641512 - Remove unused UsageInfo::DatabaseUsage function. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77446
2020-06-11 10:42:07 +00:00
Jan Varga
478765004c
Bug 1621916 - Provide a usable stack when requestFinished throws; r=dom-workers-and-storage-reviewers,sg,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D77217
2020-06-11 07:04:38 +00:00
Simon Giesecke
e655325a13
Bug 1634436 - Add support for seeking (nsISeekableStream). r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D74669
2020-06-11 08:02:29 +00:00
Simon Giesecke
aa427a3937
Bug 1634436 - Add encrypted stream implementation. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D76481
2020-06-11 08:00:39 +00:00
Butkovits Atila
0e09b9191c
Backed out changeset 3f5baab34b1f (bug 1621916) for causing failure at QuotaRequests.cpp. CLOSED TREE
2020-06-11 09:58:59 +03:00
Jan Varga
e72a3e7779
Bug 1621916 - Provide a usable stack when requestFinished throws; r=dom-workers-and-storage-reviewers,sg,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D77217
2020-06-11 06:36:55 +00:00
Tom Tung
bf2c33ba86
Bug 1641231 - Reduce raw pointers as functions arguments for DirectoryLock related functions in QuotaManager; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78068
2020-06-10 10:11:53 +00:00
Tom Tung
4970cd9ea4
Bug 1641231 - Use FlippedOnce for DirectoryLockImpl::mInvalidate; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78067
2020-06-10 12:25:09 +00:00
Tom Tung
714f42fd9c
Bug 1641231 - Use InitializedOnce for DirectoryLockImpl::mOpenListener; r=dom-workers-and-storage-reviewers,janv,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78066
2020-06-10 10:11:53 +00:00
Tom Tung
9810bb5a2b
Bug 1641231 - Use NotNull for DirectoryLockImpl's member variables; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78065
2020-06-10 10:10:47 +00:00
Tom Tung
55867d7488
Bug 1641231 - Replace raw pointers as functions arguments in DirectoryLockImpl; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78062
2020-06-10 10:10:39 +00:00
Masatoshi Kimura
9d2af3f636
Bug 1482279 - Update the comment in dom/quota/test/common/content.js. r=asuth
...
Since content has no access to chrome-privileged objects without permissive
COWs, we can no longer unwrap the methods anymore. On the other hand,
SpecialPowers wrapper improved so that we don't have to unwrap the return
value from getAsArrayBuffer() manually.
Differential Revision: https://phabricator.services.mozilla.com/D79140
2020-06-10 22:51:22 +00:00
Mihai Alexandru Michis
43e76aca07
Backed out 2 changesets (bug 1634436) for causing bustages in TestEncryptedStream.cpp
...
CLOSED TREE
Backed out changeset dc8cff56948f (bug 1634436)
Backed out changeset 2bdc7d7249f5 (bug 1634436)
2020-06-10 22:17:20 +03:00
Simon Giesecke
672ce1ce54
Bug 1634436 - Add support for seeking (nsISeekableStream). r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D74669
2020-06-10 16:17:20 +00:00
Simon Giesecke
de661a3fd7
Bug 1634436 - Add encrypted stream implementation. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D76481
2020-06-10 16:17:06 +00:00
Csoregi Natalia
ab2cd5732d
Backed out 5 changesets (bug 1641231) for assertion failures on FlippedOnce.h. CLOSED TREE
...
Backed out changeset f91248e16c71 (bug 1641231)
Backed out changeset 3c4db99ba498 (bug 1641231)
Backed out changeset 125533344189 (bug 1641231)
Backed out changeset 203e3ec45022 (bug 1641231)
Backed out changeset 84668b82ebee (bug 1641231)
2020-06-09 20:39:47 +03:00
Tom Tung
3402c1562f
Bug 1641231 - Reduce raw pointers as functions arguments for DirectoryLock related functions in QuotaManager; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78068
2020-06-08 08:22:43 +00:00
Tom Tung
893617b0d8
Bug 1641231 - Use FlippedOnce for DirectoryLockImpl::mInvalidate; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78067
2020-06-04 08:30:33 +00:00
Tom Tung
deebd6c64d
Bug 1641231 - Use InitializedOnce for DirectoryLockImpl::mOpenListener; r=dom-workers-and-storage-reviewers,janv,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78066
2020-06-09 06:59:40 +00:00
Tom Tung
453b1fffec
Bug 1641231 - Use NotNull for DirectoryLockImpl's member variables; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78065
2020-06-04 08:23:10 +00:00
Tom Tung
49df6834b9
Bug 1641231 - Replace raw pointers as functions arguments in DirectoryLockImpl; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78062
2020-06-04 07:53:45 +00:00
Simon Giesecke
13502cf27c
Bug 1642991 - Use RemoveElementsBy where easily possible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D78055
2020-06-08 09:01:48 +00:00
Masatoshi Kimura
b9a2ffc214
Bug 1482279 - Stop using Cu.forcePermissiveCOWs() in SpecialPowers. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D74641
2020-05-31 03:41:03 +00:00
Tom Tung
50ef0fddc5
Bug 1641231 - Split GetUsageForOrigin into a smaller function; r=dom-workers-and-storage-reviewers,sg,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77286
2020-05-29 13:57:50 +00:00
Tom Tung
12150459e9
Bug 1641231 - Use Result instead of an out parameter for QuotaUsageRequestBase::GetUsageForOrigin; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77080
2020-05-29 13:20:24 +00:00
Tom Tung
08b4a5ca2c
Bug 1641231 - Do not pass a raw pointer only for dereferencing for functions in actor classes; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77079
2020-05-29 12:34:59 +00:00
Tom Tung
3ee1a7f56f
Bug 1641231 - Reduce the usage for passing raw pointers in RegisterNormalOriginOp/UnregisterNormalOriginOp; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77078
2020-05-29 12:34:57 +00:00
Tom Tung
061f3b01c3
Bug 1641231 - Replace new operator with MakeRefPtr for constructing actor classes; r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77077
2020-05-29 12:34:52 +00:00
Jan Varga
42f5cca14e
Bug 1621916 - Fix IndexedDB to ignore unknown files in the client directory during initialization and usage calculation; r=dom-workers-and-storage-reviewers,sg,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D77073
2020-05-28 11:14:52 +00:00
Jan Varga
d123d73b2d
Bug 1621916 - Remove unused argument in Client::InitOrigin; r=dom-workers-and-storage-reviewers,sg
...
Depends on D77070
Differential Revision: https://phabricator.services.mozilla.com/D77072
2020-05-27 15:52:49 +00:00
Jan Varga
e7a857459c
Bug 1621916 - Add unknown files for Cache API morgue directory and its subdirectories; r=dom-workers-and-storage-reviewers,ttung
...
Cache API is currently not consistent regarding unknown files. Some unknown
files are reported and ignored, other unknown files are reported and deleted or
just silently deleted without a warning.
Quota Manager, IndexedDB, SimpleDB and LocalStorage currently report and ignore
such files. We should try to unify this in future.
Differential Revision: https://phabricator.services.mozilla.com/D76718
2020-05-27 14:31:59 +00:00
Jan Varga
5183f79beb
Bug 1621916 - Unify reporting of unknown files across quota manager, idb, sdb and ls quota client; r=dom-workers-and-storage-reviewers,ttung
...
Depends on D76703
Differential Revision: https://phabricator.services.mozilla.com/D76717
2020-05-26 07:02:07 +00:00