Hello everyone,
Using the chrome.downloads API, when a user initiates a download, (in either the onCreated or onDeterminingFileName event listeners), how can I know from which tab the user downloaded the file from?
My best method currently is to get the current active tab, but this isnt always correct as the user can click a button to initiate a download, then switch their tab before the download actually starts in the browser.
Also, what is the DownloadItem.referrer attribute exactly? Maybe this could help.
Thanks!