I have an extension that removes downloads made in Google Chrome using this line of code on my source page:
chrome.browsingData.remove({ "since": 0 }, { "downloads": true });
When the download is in a regular window, it works, however, when the download was made in the Chrome incognito window, it is not deleted. My extension is activated in incognito mode, and the background page is able to detect when the download on the incognito page is completed with:
chrome.downloads.onChanged.addListener(function(download) { if (download.state && download.state.current == "complete") {
Is there a way to remove view data in incognito windows from a man page?
source share