Bug 1694970 - [devtools] Hide profiler panel onboarding message in about:debugging r=julienw

The new profiler UI has always been used in about:debugging and the onboarding message should not be displayed here.

Differential Revision: https://phabricator.services.mozilla.com/D109541
This commit is contained in:
Julian Descottes 2021-03-24 17:31:33 +00:00
parent f54ee076ae
commit f63d98b0ac

View File

@ -101,6 +101,15 @@ class OnboardingMessage extends PureComponent {
return null;
}
/** @type {any} */
const anyWindow = window;
// If gToolbox is not defined on window, the component is rendered in
// about:debugging, and no onboarding message should be displayed.
if (!anyWindow.gToolbox) {
return null;
}
const learnMoreLink = button({
className: "perf-external-link",
onClick: this.handleLearnMoreClick,