Hi All:
I am writing a very simple extension that captures chrome.downloads.onChanged event and attempt to resume the download if the download's error is network related (i.e. error.startsWith("NETWORK_") and canResume is true
So far it seems to work only partially. Looks to me like my plugin was able resume the download without me clicking "resume" in some cases. However, I have noticed that the extension would eventually fail to resume a download and I will have to go back and click the "Resume" button by myself.
I did something like
chrome.downloads.resume(downloadId, () => {
log(chrome.runtime.lastError)
and the last error was always empty.
Was there a hard limit of when an extension can resume a download? Was it because it has done it too many times? (3 or 4 times only actually) Or was it some other reasons?
thanks