This repo is to reproduce an apparent memory leak when navigating between multi-page websites, which occured in Puppeteer 21.9.0 (Chromium 121.0.6167.85).
First, ensure Node v20 and npm v10 are installed.
Then run:
npm i
node index.js
Then compare the start.heapsnapshot
and end.heapsnapshot
files that are created.