I wrote a Firefox extension where I open one window at a time, and close it after processing the web page in that window. However, I need to do this many times repeatedly. And after I ran my extension, Firefox was consuming way to much memory too quickly.
Here's a brief overview of how it's done
- window A open
- (processing in window A)
- window B open
- window A closed
- (precessing in window B)
- window A open
- window B closed
- (processing in window A)
- ...
And at each time point there are only at most 4 windows open.
The way I'm doing it is using JS events to open and close windows.
Is this some issue with Firefox's memory management and garbage collection for Firefox's JS engine?