Bug 1451670: Read the changed flag from startup JSON location data. r=aswan
authorKris Maglione <maglione.k@gmail.com>
Thu, 05 Apr 2018 14:01:38 -0700
changeset 412895 96f5608910e23ccbbd52cbdd868e006926ef8fb5
parent 412894 141144c1794db439f6fb39dfaaeab08d23855e63
child 412896 ee8433c44341d8a18c9f26f233e4229feb687b8f
push id33823
push userebalazs@mozilla.com
push dateThu, 12 Apr 2018 09:38:35 +0000
treeherdermozilla-central@abd91e812e7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaswan
bugs1451670
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1451670: Read the changed flag from startup JSON location data. r=aswan MozReview-Commit-ID: tgfQDvyEj3
toolkit/mozapps/extensions/internal/XPIProvider.jsm
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -1257,16 +1257,17 @@ class XPIState {
  */
 class XPIStateLocation extends Map {
   constructor(name, path, saved = {}) {
     super();
 
     this.name = name;
     this.path = path || saved.path || null;
     this.staged = saved.staged || {};
+    this.changed = saved.changed || false;
     this.dir = this.path && new nsIFile(this.path);
 
     for (let [id, data] of Object.entries(saved.addons || {})) {
       let xpiState = this._addState(id, data);
       // Make a note that this state was restored from saved data.
       xpiState.wasRestored = true;
     }
   }