Bug 1636148 - "BandAid" - Cast Remaining Callers To BasePrincipal r=ckerschb,geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D74248
This commit is contained in:
Sebastian Streich
2020-05-14 19:42:57 +00:00
parent 79155ff2b3
commit 51b02d872f
6 changed files with 13 additions and 9 deletions

View File

@@ -7615,7 +7615,7 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
if (!parentSite.Equals(thisSite)) {
#ifdef MOZ_GECKO_PROFILER
nsCOMPtr<nsIURI> prinURI;
thisPrincipal->GetURI(getter_AddRefs(prinURI));
BasePrincipal::Cast(thisPrincipal)->GetURI(getter_AddRefs(prinURI));
nsPrintfCString marker("Iframe loaded in background: %s",
prinURI->GetSpecOrDefault().get());
TimeStamp now = TimeStamp::Now();