Commit Graph
37 Commits
Author SHA1 Message Date
Randell Jesup 28a11063a8 Bug 2025349: Add a deathgrip to StreamList r=dom-storage-reviewers,dom-worker-reviewers,hsingh,asuth
Differential Revision: https://phabricator.services.mozilla.com/D289826
2026-04-10 00:04:15 +00:00
Atila Butkovits 0263ca3f2d Revert "Bug 2025349: Add a deathgrip to StreamList r=dom-storage-reviewers,dom-worker-reviewers,hsingh,asuth" for casuing failures at nsTArray_base.
This reverts commit 26ac86c3fb.
2026-04-08 00:08:00 +00:00
Randell Jesup 26ac86c3fb Bug 2025349: Add a deathgrip to StreamList r=dom-storage-reviewers,dom-worker-reviewers,hsingh,asuth
Differential Revision: https://phabricator.services.mozilla.com/D289826
2026-04-07 22:35:40 +00:00
Jari Jalkanen 1fdb8abdd2 Bug 2022335 - End cache actions faster after cancel. r=hsingh,dom-storage-reviewers,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D287326
2026-03-31 04:36:57 +00:00
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Jens Stutte c3163ba9a5 Bug 1890291 - Do not shutdown StreamControl before all streams are closed. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D204536
2024-04-26 12:37:54 +00:00
Jens Stutte 07a7841983 Bug 1727526 - Add diagnostic assertions for StreamList to verify mList's book keeping. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D204535
2024-03-18 14:27:34 +00:00
Jens Stutte a696d9cd91 Bug 1870594 - Handle the no-CSCP case in StreamList::CloseAll. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D196711
2023-12-21 06:53:25 +00:00
Jens Stutte 09e51b5d0e Bug 1727526 - Add more details to Context::Stringify. r=dom-storage-reviewers,janv
Depends on D191082

Differential Revision: https://phabricator.services.mozilla.com/D191084
2023-12-11 15:17:12 +00:00
Simon Giesecke 8c71db70a3 Bug 1682536 - Use references/NotNull in Manager. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99776
2020-12-17 16:14:43 +00:00
Simon Giesecke 9204af24f1 Bug 1682536 - Use references/NotNull in Context. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99775
2020-12-15 23:25:30 +00:00
Simon Giesecke b8e7c6b5fa Bug 1682542 - Make use of standard algorithms in dom/cache. r=dom-workers-and-storage-reviewers,asuth
Specifically, instead of using custom loops
- use std::find_if in CacheOpParent::ProcessCrossOriginResourcePolicyHeader
- use ReduceEach in SetupAction::RunSyncWithDBOnTarget
- use std::any_of in Manager::RemoveContext
- use std::find_if in Manager::(Add|Release)Ref(Cache|Body)Id and
  Manager::Set(Cache|Body)IdOrphanedIfRefed
- use std::copy_if in Manager::NoteOrphanedBodyIdList
- use std::any_of in StreamList::ShouldOpenStreamFor
- use std::find_if in StreamList::Extract, StreamList::NoteClosed
- use std::exchange in StreamList::CloseAll
- use std::transform in ToHeadersEntryList and change it to return a value
  rather than modifying an output parameter
- use std::transform in TypeUtils::ToInternalHeaders

Differential Revision: https://phabricator.services.mozilla.com/D99789
2020-12-16 19:10:57 +00:00
Sylvestre Ledru 68b806d604 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila a6e7dcc53f Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE 2020-11-04 10:54:36 +02:00
Sylvestre Ledru 8f709b39e8 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
ssengupta c87377337c Bug 1655115 - Remove unused code paths leading to dom::cache::StreamControl::CloseReadStreams() r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D85364
2020-08-04 07:59:48 +00:00
Simon Giesecke d38005eb13 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 ad5e50f4b1 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 cbc999ef2b 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
Andrew Sutherland 23f49e2734 Bug 1626728 - Normalize shutdown. r=perry,jstutte, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D69463
-
Noemi Erli fb24822163 Backed out changeset b7170a7eaacb (bug 1626728) for causing assertion failures a=backout 2020-04-03 08:27:20 +03:00
Andrew Sutherland b96ea1ccbd Bug 1626728 - Normalize shutdown. r=perry, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D69463
2020-04-02 23:40:45 +00:00
Sylvestre Ledru e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez 4b8b5e1717 Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Ben Kelly 0433bb3c73 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 ae6c3e29a7 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
Sebastian Hengst e53b398321 Backed out changeset 15edfaab92f6 (bug 1397128) 2017-09-15 18:28:54 +02:00
Sebastian Hengst 3a6107fab2 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Ben Kelly 23ca0c66ef 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 b5e77d3c84 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 077c137d4a Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth 2017-01-06 12:41:15 -08:00
Ben Kelly a2b4c2dbb7 Bug 1150608 Do not reuse CacheId values within an origin. r=ehsan 2015-04-02 17:11:41 -07:00
Ben Kelly 44a3980c9e Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
Ryan VanderMeulen 40ab4fd559 Backed out changeset 734e81bff9f3 (bug 1110487) for intermittent e10s cache test crashes.
CLOSED TREE
2015-03-16 13:51:33 -04:00
Ben Kelly 95bc43c11a Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan 2015-03-16 07:10:36 -07:00
Ben Kelly 0c2e7a4f3c Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv 2015-03-02 14:20:00 +01:00