Skip to content

Commit

Permalink
Bug 1584007 - FutureClientSourceParent should keep ClientManagerServi…
Browse files Browse the repository at this point in the history
…ce alive r=asuth

The strong reference will be dropped when FutureClientSourceParent is removed,
and we guarantee that all FutureClientSourceParents will either be removed or
replaced with a ClientSourceParent (or at least this is a guarantee that's
supposed to be true).

Depends on D66529

Differential Revision: https://phabricator.services.mozilla.com/D68041

--HG--
extra : moz-landing-system : lando
  • Loading branch information
perryjiang committed Mar 24, 2020
1 parent 45fc757 commit a6d3043
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dom/clients/manager/ClientManagerService.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class ClientManagerService final {
private:
const mozilla::ipc::PrincipalInfo mPrincipalInfo;
MozPromiseHolder<SourcePromise> mPromiseHolder;
RefPtr<ClientManagerService> mService = ClientManagerService::GetInstance();
};

using SourceTableEntry =
Expand Down

0 comments on commit a6d3043

Please sign in to comment.