Closed Bug 1572578 Opened 5 years ago Closed 5 years ago

Add-on migrations run every startup

Categories

(Firefox :: Normandy Client, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: mythmon, Assigned: mythmon)

Details

Attachments

(1 file)

With sufficient logging turned on, I see this message everytime I start Firefox:

1565306148755	app.normandy.addon-studies	DEBUG	Running data migrations from 0 to 2

Looking at the code, it seems that instead of storing the version number in the database, it is simply storing the string "version".

const {IndexedDB} = ChromeUtils.import("resource://gre/modules/IndexedDB.jsm");
const db = await IndexedDB.open("shield", 2);
await db.objectStore("addon-studies-version").getAll()
>>> ["version"]
Attachment #9084181 - Attachment description: Bug 1572578 - Fix argument order when storing the AddonStudies migration version r=rdalal! → Bug 1572578 - Convert AddonStudies migration to a general Normnady migration r=rdalal!
Attachment #9084181 - Attachment description: Bug 1572578 - Convert AddonStudies migration to a general Normnady migration r=rdalal! → Bug 1572578 - Convert AddonStudies migration to a general Normandy migration r=rdalal!
Pushed by mcooper@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cd4b34a79a0
Convert AddonStudies migration to a general Normandy migration r=rdalal
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: