docs: mention about issues caused by upstream

This commit is contained in:
yanlong.wang 2025-03-13 16:30:22 +08:00
parent b9ad4facf5
commit dd76cf3866
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -487,6 +487,8 @@ class PageReqCtrlKit {
deferred?.resolve();
const now = Date.now();
this.lastResourceLoadedAt = now;
// Beware req being undefined
// https://pptr.dev/api/puppeteer.pageevent#:~:text=For%20certain%20requests%2C%20might%20contain%20undefined.
const typ = req?.resourceType();
if (!typ) {
return;