Bug 718532 - Error console reports an error on add-ons (first) installation attempt - Couldn't find value for key: TIME_SESSION_RESTORED. r=Unfocused
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Wed, 18 Dec 2013 23:09:44 +0200
changeset 161203 37f6fdcc17c8a1c53a6006980d4d8323d099ba9a
parent 161202 1cc2d61ff1a8ada8da7506b3946b3f3653ec2b3b
child 161204 fa80810367524ddf831a82a96151dc0aba775ff2
push id25871
push usercbook@mozilla.com
push dateThu, 19 Dec 2013 09:34:02 +0000
treeherdermozilla-central@5c7fa2bfea8b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs718532
milestone29.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 718532 - Error console reports an error on add-ons (first) installation attempt - Couldn't find value for key: TIME_SESSION_RESTORED. r=Unfocused
toolkit/mozapps/extensions/AddonRepository.jsm
--- a/toolkit/mozapps/extensions/AddonRepository.jsm
+++ b/toolkit/mozapps/extensions/AddonRepository.jsm
@@ -773,16 +773,19 @@ this.AddonRepository = {
       let type = Services.prefs.getPrefType(PREF_GETADDONS_BYIDS_PERFORMANCE);
       if (type == Services.prefs.PREF_STRING) {
         pref = PREF_GETADDONS_BYIDS_PERFORMANCE;
 
         let startupInfo = Cc["@mozilla.org/toolkit/app-startup;1"].
                           getService(Ci.nsIAppStartup).
                           getStartupInfo();
 
+        params.TIME_MAIN = "";
+        params.TIME_FIRST_PAINT = "";
+        params.TIME_SESSION_RESTORED = "";
         if (startupInfo.process) {
           if (startupInfo.main) {
             params.TIME_MAIN = startupInfo.main - startupInfo.process;
           }
           if (startupInfo.firstPaint) {
             params.TIME_FIRST_PAINT = startupInfo.firstPaint -
                                       startupInfo.process;
           }