最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

node.js - Data Privacy in Puppeteer: Does Any Data Survive Chrome Restart? - Stack Overflow

programmeradmin2浏览0评论

If I:

  1. Launch Chrome via Puppeteer (puppeteer.launch()) and load some HTML (e.g., to create a PDF),
  2. Then close the browser (browser.close()),
  3. 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!

发布评论

评论列表(0)

  1. 暂无评论