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
935a26e070
Bug 1641512 - Use Result<UsageInfo, nsresult> as return type of GetUsageForOriginInternal. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D77454
2020-06-25 08:35:13 +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
ssengupta
15e2980688
Bug 1636050 - dom::cache::ReadStream::Controllable now inherits from AtomicSafeRefCounted. r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77223
2020-06-23 13:34:52 +00:00
Simon Giesecke
e935edc6a0
Bug 1644780 - Include nsresult value in crash report when db::IncrementalVacuum fails. r=janv
...
Differential Revision: https://phabricator.services.mozilla.com/D79258
2020-06-22 15:44:28 +00:00
Tom Tung
ad521d4997
Bug 1645943 - Check results from nsIFile's functions rather than mozStorage's/SQLite's in LockedGetPaddingSizeFromDB; r=janv,dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D79959
2020-06-23 06:38:25 +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
ab0b6d3117
Bug 1645943 - Check results from nsIFile's functions rather than mozStorage's/SQLite's in LockedGetPaddingSizeFromDB; r=janv,dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D79959
2020-06-22 16:17:35 +00:00
Simon Giesecke
8d168248fa
Bug 1645386 - Use nsTObserverArray::NonObservingRange where possible instead of ForwardRange. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D79507
2020-06-22 08:21:24 +00:00
Eden Chuang
0bd8d68bcb
Bug 1642149 - P1 Fix the web-platform-test html/cross-origin-embedder-policy/require-corp.https.html r=necko-reviewers,valentin
...
Current HttpBaseChannel::ProcessCrossOriginResourcePolicyHeader does not implement the [[ https://wicg.github.io/cross-origin-embedder-policy/#corp-check | corp-check ]] 3.2.1.2.
Differential Revision: https://phabricator.services.mozilla.com/D77594
2020-06-19 13:23:33 +00:00
Eden Chuang
400b4664ad
Bug 1642531 - Instead of using RequestMode, using ResponseType for CORP checking in cache APIs r=dom-workers-and-storage-reviewers,perry
...
According to https://github.com/w3c/ServiceWorker/pull/1516 , Replacing RequestMode by ResponseType for CORP checking in cache.match() and cache.matchAll().
Differential Revision: https://phabricator.services.mozilla.com/D77747
2020-06-18 10:02:53 +00:00
Simon Giesecke
bfb7f6a78a
Bug 1645339 - Use range-based for with nsTObserverArray in dom/cache. r=dom-workers-and-storage-reviewers,edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D79431
2020-06-17 15:04:24 +00:00
Jean-Yves Avenard
2fade796dc
Bug 1644009
- P2. Revert "Bug 1592488 - P9. Make a DOMCacheThread an AbstractThread." r=nika
...
DirectTask dispatching will now be directly handled by nsThread.
Differential Revision: https://phabricator.services.mozilla.com/D79086
2020-06-12 05:09:33 +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
82dc9b2271
Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Butkovits Atila
e3dce68834
Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
...
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Simon Giesecke
d419f0ff08
Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 05:49:28 +00:00
Csoregi Natalia
c644ee9a06
Backed out changeset 99cce83b7e41 (bug 1636050) for assertion failures on ReadStream.cpp. CLOSED TREE
2020-06-09 21:21:34 +03:00
ssengupta
0789e4dfa7
Bug 1636050 - dom::cache::ReadStream::Controllable now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77223
2020-06-09 14:32:17 +00:00
ssengupta
1673ecbe85
Bug 1636050 - PCacheStreamControl protocol is now refcounted r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D78857
2020-06-09 12:58:44 +00:00
Bogdan Tara
5b21d5ce2a
Backed out changeset f1ece7c1dc6e (bug 1636050) for tsan mochitest failure in operator++ CLOSED TREE
2020-06-08 19:14:35 +03:00
ssengupta
0bd79b3130
Bug 1636050 - dom::cache::ReadStream::Controllable now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D77223
2020-06-08 13:33:49 +00:00
Simon Giesecke
f3d8e02f37
Bug 1620198 - Part 1: Remove CreateAggregateFunction. r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D65505
2020-06-08 09:59:57 +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
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
Eden Chuang
501eb4718d
Bug 1603168 - Reject Cache.match and Cache.matchAll if the response doesn't match the caller context coep r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70020
2020-05-23 01:44:58 +00:00
Christoph Kerschbaumer
026a7442f3
Bug 1636900: Remove TYPE_XBL from nsIContentPolicy. r=remote-protocol-reviewers,emilio,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D74835
2020-05-13 06:53:28 +00:00
Jean-Yves Avenard
dde81db3d7
Bug 1592488 - P9. Make a DOMCacheThread an AbstractThread. r=baku
...
This is a step towards bug 1119864. However, at this stage we only need the cache thread to support direct task dispatch so that we can have IPDL MozPromise acting in a similar fashion to JS promise.
Differential Revision: https://phabricator.services.mozilla.com/D74637
2020-05-13 00:12:19 +00:00
ssengupta
cf852bbfb9
Bug 1635399 - Function PrincipalInfoToPrincipal now returns Result<nsCOMPtr<nsIPrincipal>, nsresult> r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D73868
2020-05-12 19:02:05 +00:00
Honza Bambas
ef0d4e6dd1
Bug 1618536 - Introduce nsIContentPolicy::TYPE_INTERNAL_FONT_PRELOAD representing preload of font, mapping to TYPE_FONT externally, r=baku
...
Depends on D69628
Differential Revision: https://phabricator.services.mozilla.com/D72118
2020-05-11 14:13:16 +00:00
Simon Giesecke
75c988ec13
Bug 1627892 - Use SafeRefPtr for Request. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70390
2020-05-11 12:13:48 +00:00
Simon Giesecke
bec9351c13
Bug 1627892 - Make ThreadsafeHandle derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D69962
2020-05-11 12:13:25 +00:00
Simon Giesecke
4bd2bbd28a
Bug 1627892 - Make ManagerId derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69961
2020-05-11 12:13:07 +00:00
Simon Giesecke
e5b657303a
Bug 1627892 - Make CacheWorkerRef derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69960
2020-05-11 12:12:22 +00:00
Simon Giesecke
8118041984
Bug 1627892 - Make StreamList derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69959
2020-05-11 12:11:33 +00:00
Simon Giesecke
32076b1063
Bug 1627892 - Make InternalRequest derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69958
2020-05-11 12:10:53 +00:00
Simon Giesecke
c4c6f0c42c
Bug 1627892 - Make Context derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69957
2020-05-11 12:09:55 +00:00
Simon Giesecke
33a08c2818
Bug 1627892 - Make Manager derive from SafeRefCounted. r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D69956
2020-05-11 12:09:02 +00:00
Simon Giesecke
521c25b58c
Bug 1627892 - Replace custom AutoLock by BaseAutoLock. r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D69945
2020-05-11 12:08:14 +00:00
Simon Giesecke
daf66e3fc8
Bug 1626570 - Improve handling of copying arrays in dom/cache/. r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D73643
2020-05-07 08:49:15 +00:00
Jan Varga
7908ce2965
Bug 1624802 - Refactor tests in dom/cache/test/xpcshell to use a common initialization function; r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D73145
2020-05-05 06:28:31 +00:00
Tom Tung
09903525ea
Bug 1628076 - Ensure sFactory alive while it is calling Abort; r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D71323
2020-04-21 19:57:46 +00:00
Coroiu Cristina
43be71277d
Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
...
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch
cc39a339a0
Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Simon Giesecke
f776d67e10
Bug 1627918 - Make dom/cache build outside unified build environment. r=dom-workers-and-storage-reviewers,ttung,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D69978
--HG--
extra : moz-landing-system : lando
2020-04-14 23:51:44 +00:00
Simon Giesecke
0cad3e5673
Bug 1627904 - Bugzilla component for dom/cache should be Storage: Cache API. r=jstutte
...
Differential Revision: https://phabricator.services.mozilla.com/D69970
--HG--
extra : moz-landing-system : lando
2020-04-09 12:07:45 +00:00
Andreas Farre
63e21eec70
Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika
...
To be able to remove SystemGroup, NS_ReleaseOnMainThreadSystemGroup
needs to have its dependency on SystemGroup removed. Since all
releases using SystemGroup would've released on the main thread anyway
we can safely replace NS_ReleaseOnMainThreadSystemGroup with
NS_ReleaseOnMainThread.
Depends on D64390
Differential Revision: https://phabricator.services.mozilla.com/D67631
--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:23 +00:00