If I:
- Launch Chrome via Puppeteer (
puppeteer.launch()
) and load some HTML (e.g., to create a PDF), - Then close the browser (
browser.close()
), - Then repeat the whole process (launch the browser again, load some other HTML, create a PDF, close the browser),
I'm wondering if all the data from the previously started browser session is deleted, or if there is a potential for some data to be exposed?
The basic idea is that each Puppeteer task (like creating a PDF) should run with full data privacy for the data associated with that specific job, without any risk of exposing the data after the task is done and the browser has been closed.
This doesn't just mean that a new browser start shouldn't load the content from the previous session, but also that even in the case of a malicious attempt, it wouldn't be possible to find traces of the previous data (e.g., through any local folders like tmp or user directory, cookies, caches, or any other possibilities).
I'd like to get a proper understanding of how to ensure complete data privacy for a Puppeteer task (PDF creation). I'm not sure if incognito mode might be a solution privacy-wise, but it's not a viable option in my understanding because it might influence how a web page behaves (and thus might change the resulting PDF).
I haven't really found reliable information about this and would very much appreciate any help!