Bug 1647557 - Fix toolchain bustage caused by unused variable. CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D81722
This commit is contained in:
Nika Layzell 2020-06-30 16:01:46 +00:00
Родитель bbe144a63b
Коммит c47eae6143
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -8,6 +8,7 @@
#include "DocumentLoadListener.h"
#include "mozilla/AntiTrackingUtils.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/LoadInfo.h"
#include "mozilla/MozPromiseInlines.h" // For MozPromise::FromDomPromise
#include "mozilla/StaticPrefs_extensions.h"
@ -719,7 +720,8 @@ bool DocumentLoadListener::SpeculativeLoadInParent(
nsCOMPtr<nsIRedirectChannelRegistrar> registrar =
RedirectChannelRegistrar::GetOrCreate();
uint64_t loadIdentifier = aLoadState->GetLoadIdentifier();
nsresult rv = registrar->RegisterChannel(nullptr, loadIdentifier);
DebugOnly<nsresult> rv =
registrar->RegisterChannel(nullptr, loadIdentifier);
MOZ_ASSERT(NS_SUCCEEDED(rv));
// Register listener (as an nsIParentChannel) under our new identifier.
rv = registrar->LinkChannels(loadIdentifier, listener, nullptr);