summaryrefslogtreecommitdiffstats
path: root/ipc/glue/BackgroundImpl.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /ipc/glue/BackgroundImpl.cpp
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/glue/BackgroundImpl.cpp')
-rw-r--r--ipc/glue/BackgroundImpl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipc/glue/BackgroundImpl.cpp b/ipc/glue/BackgroundImpl.cpp
index bba09c261a..bf040a18a4 100644
--- a/ipc/glue/BackgroundImpl.cpp
+++ b/ipc/glue/BackgroundImpl.cpp
@@ -561,7 +561,12 @@ class ChildImpl final : public BackgroundChildImpl {
#endif
}
- NS_INLINE_DECL_REFCOUNTING(ChildImpl, override)
+ // This type is threadsafe refcounted as actors managed by it may be destroyed
+ // after the thread it is bound to dies, and hold a reference to this object.
+ //
+ // It is _not_ safe to use this type or any methods on it from off of the
+ // thread it was created for.
+ NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ChildImpl, override)
private:
// Forwarded from BackgroundChild.