Ignore aborted navigations in ops policy sweep runtime accounting

This commit is contained in:
master
2026-03-10 07:55:45 +02:00
parent b8e6f7b585
commit 011aebc802

View File

@@ -565,11 +565,16 @@ async function main() {
return; return;
} }
const errorText = request.failure()?.errorText ?? 'unknown';
if (errorText === 'net::ERR_ABORTED') {
return;
}
runtime.requestFailures.push({ runtime.requestFailures.push({
page: page.url(), page: page.url(),
method: request.method(), method: request.method(),
url, url,
error: request.failure()?.errorText ?? 'unknown', error: errorText,
}); });
}); });
page.on('response', (response) => { page.on('response', (response) => {