Bug 1602318 - Make sure rv is initialized correctly in all branches of OpenInitializedChannel. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D70621
This commit is contained in:
Matt Woodrow 2020-04-24 06:57:37 +00:00
Родитель 2049140b75
Коммит ffa2817635
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -10070,6 +10070,7 @@ nsresult nsDocShell::OpenInitializedChannel(nsIChannel* aChannel,
// ClientInfo, so we just need to allocate a corresponding ClientSource.
CreateReservedSourceIfNeeded(aChannel,
win->EventTargetFor(TaskCategory::Other));
rv = NS_OK;
} else {
rv = AddClientChannelHelper(aChannel, std::move(noReservedClient),
GetInitialClientInfo(),