Bug 1637869 - P7. Call DisconnectChildListeners when an error occurs. r=mattwoodrow

This will allow the DocumentChannel to be removed from the loading group and the docshell to stop waiting for for the ParentProcessDocumentChannel to do something.

Depends on D77201

Differential Revision: https://phabricator.services.mozilla.com/D77202
This commit is contained in:
Jean-Yves Avenard 2020-05-28 07:42:35 +00:00
Родитель 2746af48c3
Коммит 6131e9fa5c
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -805,6 +805,7 @@ void DocumentLoadListener::FinishReplacementChannelSetup(nsresult aResult) {
if (NS_FAILED(aResult)) {
mChannel->Cancel(aResult);
mChannel->Resume();
DisconnectChildListeners(aResult, aResult);
return;
}
ApplyPendingFunctions(mChannel);