-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] FF - launchPersistentContext #2979
Comments
Hey @ruslanx3m, So what doesn't work? Is it purely aesthetics that bother you? |
I can close 1 browser and work on second ... why I need 1 browser ? but .. if u say, ok ... 8GB or 16GB ram - Is it purely aesthetics that bother you?? |
@ruslanx3m since we talk about browser windows, not browsers, the memory overhead should be negligible. Especially if you keep the first page empty. Do you have any measurements that show that extra page consumes 8GB of ram? |
|
yes, have ... why u just not test code to see what is problem, is just double use memory, normal 180MB, but this code use 340MB (await browserContext..pages()[0] vs await browserContext.newPage()) ... why newPage (tab) open new browser window ? firefox.launchPersistentContext - open 1 browser window (is normal) so its memory leak .. but if I open 10 tests or more my pc memory will end .. but if you say 'Is it purely aesthetics' will go back to puppeteer (purely aesthetics) ... |
Context:
Codet
Describe the bug
Hi, with Firefox browser, this code is opening 2 browsers if I use
const page = await browserContext.newPage()
, or is opening 1 browser if is useconst page = browserContext.pages()[0]
, but in my case page.close will close browser .. so every opened page is a new Browser ... if I add to optionlocale: 'de-DE'
- opens 3 browsers ...The text was updated successfully, but these errors were encountered: