Add support for the previousVersion property to runtime.onInstalled

RESOLVED FIXED in Firefox 55

Status

()

Toolkit
WebExtensions: General
P2
normal
RESOLVED FIXED
10 months ago
24 days ago

People

(Reporter: mattw, Assigned: zombie)

Tracking

({dev-doc-complete})

unspecified
mozilla55
dev-doc-complete
Points:
---

Firefox Tracking Flags

(firefox55 fixed)

Details

(Whiteboard: [runtime] triaged)

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Reporter)

Description

10 months ago
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".

Updated

10 months ago
Blocks: 1313649
(Reporter)

Updated

10 months ago
No longer blocks: 1313649

Updated

10 months ago
Priority: -- → P2
Whiteboard: [runtime] → [runtime] triaged

Updated

10 months ago
Component: WebExtensions: Untriaged → WebExtensions: General

Comment 1

6 months ago
Any news here?
(Assignee)

Updated

5 months ago
Assignee: nobody → tomica
Status: NEW → ASSIGNED
Comment hidden (mozreview-request)
(Assignee)

Updated

5 months ago
Attachment #8846504 - Flags: review?(aswan)

Comment 3

5 months ago
mozreview-review
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+
(Assignee)

Updated

5 months ago
Keywords: checkin-needed

Comment 4

5 months ago
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/93534be9656e
Add previousVersion to onInstalled details r=aswan
Keywords: checkin-needed

Comment 5

5 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/93534be9656e
Status: ASSIGNED → RESOLVED
Last Resolved: 5 months ago
status-firefox55: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55

Comment 6

5 months ago
Should this also work with temporary loaded extensions? I loaded an extension temporarily with the nightly from 2017-03-15 and "previousVersion" was undefined.

Comment 7

5 months ago
(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.
Keywords: dev-doc-needed
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.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in before you can comment on or make changes to this bug.