Closed Bug 1313648 Opened 3 years ago Closed 3 years ago

Add support for the previousVersion property to runtime.onInstalled

Categories

(WebExtensions :: General, defect, P2)

defect

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: mattw, Assigned: Tomislav)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [runtime] triaged)

Attachments

(1 file)

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".
Blocks: 1313649
No longer blocks: 1313649
Priority: -- → P2
Whiteboard: [runtime] → [runtime] triaged
Component: WebExtensions: Untriaged → WebExtensions: General
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+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/93534be9656e
Add previousVersion to onInstalled details r=aswan
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/93534be9656e
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
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.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.