Bug 1735697 - Remove profiler_can_accept_markers(), use profiler_thread_is_being_profiled() instead - r=florian

Differential Revision: https://phabricator.services.mozilla.com/D128577
This commit is contained in:
Gerald Squelart
2021-10-18 23:11:30 +00:00
parent 53da93c1f8
commit e52556d921
34 changed files with 64 additions and 93 deletions

View File

@@ -7899,7 +7899,7 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
NS_ENSURE_SUCCESS(rv, rv);
if (!parentSite.Equals(thisSite)) {
if (profiler_can_accept_markers()) {
if (profiler_thread_is_being_profiled()) {
nsCOMPtr<nsIURI> prinURI;
BasePrincipal::Cast(thisPrincipal)->GetURI(getter_AddRefs(prinURI));
nsPrintfCString marker("Iframe loaded in background: %s",