Closed Bug 1313648 Opened 3 years ago Closed 3 years ago
Add support for the previous
Version property to runtime .on Installed
59 bytes, text/x-review-board-request
From the documentation on MDN and developer.chrome.com, the `previousVersion` property indicates the previous version of the extension that was just updated, and should only be present if the reason value is "update".
Any news here?
Assignee: nobody → tomica
Status: NEW → ASSIGNED
Attachment #8846504 - Flags: review?(aswan)
Comment on attachment 8846504 [details] Bug 1313648 - Add previousVersion to onInstalled details https://reviewboard.mozilla.org/r/119560/#review121742 Nice, thanks!
Attachment #8846504 - Flags: review?(aswan) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/93534be9656e Add previousVersion to onInstalled details r=aswan
Should this also work with temporary loaded extensions? I loaded an extension temporarily with the nightly from 2017-03-15 and "previousVersion" was undefined.
(In reply to testit from comment #6) > Should this also work with temporary loaded extensions? I loaded an > extension temporarily with the nightly from 2017-03-15 and "previousVersion" > was undefined. P.S. I reloaded the extension, so the update case was triggered.
I've updated the compat data here: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/onInstalled Marking as dev-doc-complete, but let me know if we need anything else here.
You need to log in before you can comment on or make changes to this bug.