Closed Bug 1568785 Opened 6 years ago Closed 6 years ago

Download id is reset after browser restart (Extensions API)

Categories

(WebExtensions :: Untriaged, defect)

68 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1247794

People

(Reporter: kontsedalbohdan, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  1. create browser extension with downloads listener: chrome.downloads.onCreated.addListener(file => console.log(file.id))
  2. download couple files and look for ids printed in console. It would be for example: 1, 2, 3
  3. close browser
  4. open browser and download files again

Actual results:

Downloads ids starts with 1

Expected results:

Download id should be unique for each download. So if extension holds list of downloaded files it will have files with same id.

Product: Firefox → WebExtensions
Version: 68 Branch → Firefox 68
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Version: Firefox 68 → 68 Branch
You need to log in before you can comment on or make changes to this bug.