Instead of adding an auto-clicked hyperlink containing screenshot data to
dowload it, pass the blob to background script and use browser.downloads
interface to do so. It avoids memory leak as the browser does not really free
up the memory of the hyperlink even if removed from DOM.
Using browser.download() allows save as feature. Add a preference option to open
the file chooser dialog if enabled.
These commits addresses issues #58 and #59 from @probablytukars.
Instead of adding an auto-clicked hyperlink containing screenshot data to dowload it, pass the blob to background script and use browser.downloads interface to do so. It avoids memory leak as the browser does not really free up the memory of the hyperlink even if removed from DOM.
Using browser.download() allows save as feature. Add a preference option to open the file chooser dialog if enabled.
These commits addresses issues #58 and #59 from @probablytukars.