We're experiencing a memory leak when calling window.open with two parameters (URL and target): memory usage increases when the window is opened this way but doesn't drop after closing it. Heap snapshots show that there are detached windows (one per window.open).
Can be reproduced in cefclient sample application:
- Right-click -> "Show DevTools"
- Go to console and call for example: window.open("https://www.google.com/", "target")
- Close the newly opened window
- Repeat the above two multiple times while observing memory usage.
This doesn't happen in cefclient when using "Tests" -> "Popup Window", which calls window.open without the target parameter. Then the behavior is as expected: memory usage increases while the window is open and drops soon after closing it.
Is there some additional clean-up that we need to do when closing windows opened this way?