Skip to content

Commit

Permalink
Merge branch 'main' into redirects-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Feb 28, 2023
2 parents a25d86e + c8600d5 commit b91c8a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cli/test/smokehouse/config/exclusions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const exclusions = {
'metrics-tricky-tti', 'metrics-tricky-tti-late-fcp', 'screenshot',
// Disabled because of differences that need further investigation
'byte-efficiency', 'byte-gzip', 'perf-preload',
// https://bugs.chromium.org/p/chromium/issues/detail?id=1420418
'issues-mixed-content',
],
};

Expand Down
4 changes: 2 additions & 2 deletions core/scripts/pptr-run-devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ async function waitForLighthouseReady() {
}
// @ts-expect-error global
const targetManager = SDK.targetManager || (SDK.TargetManager.TargetManager || SDK.TargetManager).instance();
if (targetManager.mainTarget() === null) {
if (targetManager.primaryPageTarget() === null) {
if (targetManager?.observeTargets) {
await new Promise(resolve => targetManager.observeTargets({
targetAdded: resolve,
targetRemoved: () => {},
}));
} else {
while (targetManager.mainTarget() === null) {
while (targetManager.primaryPageTarget() === null) {
await new Promise(resolve => setTimeout(resolve, 100));
}
}
Expand Down

0 comments on commit b91c8a5

Please sign in to comment.