Bug 1621305 - Remove GetUri in nsChannelClassifier.cpp r=ckerschb

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sebastian Streich 2020-03-12 19:47:51 +00:00
parent 8193cb1f80
commit 13de9eb145

View File

@ -202,8 +202,8 @@ nsresult nsChannelClassifier::StartInternal() {
bool expectCallback;
if (UC_LOG_ENABLED()) {
nsCOMPtr<nsIURI> principalURI;
principal->GetURI(getter_AddRefs(principalURI));
nsCString spec = principalURI->GetSpecOrDefault();
nsCString spec;
principal->GetAsciiSpec(spec);
spec.Truncate(std::min(spec.Length(), UrlClassifierCommon::sMaxSpecLength));
UC_LOG(("nsChannelClassifier[%p]: Classifying principal %s on channel[%p]",
this, spec.get(), mChannel.get()));