mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Bug 1730350 - Add comments to explains why !XRE_IsE10sParetnProcess() is needed in ClientManagerService. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D125518
This commit is contained in:
parent
a346591234
commit
963f6a7e85
@ -337,6 +337,16 @@ void ClientManagerService::ForgetFutureSource(
|
||||
return;
|
||||
}
|
||||
|
||||
// For non-e10s case, ClientChannelHelperParent will be freed before real
|
||||
// ClientSourceParnet be created. In the end this methoed will be called to
|
||||
// release the FutureClientSourceParent. That means a ClientHandle operation
|
||||
// which waits for the FutureClientSourceParent will have no chance to
|
||||
// connect to the ClientSourceParent. So the FutureClientSourceParent should
|
||||
// be keep in this case.
|
||||
// IsAssociated() makes sure there is a ClientHandle operation associated
|
||||
// with it.
|
||||
// More details please refer
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1730350#c2
|
||||
if (!XRE_IsE10sParentProcess() &&
|
||||
entry.Data().as<FutureClientSourceParent>().IsAssociated()) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user