Bug 922342 - PermissionPromptHelper.jsm takes ~220ms on startup on a galaxy nexus r=wesj
authorMark Finkle <mfinkle@mozilla.com>
Fri, 17 Jan 2014 22:35:12 -0500
changeset 164172 3da20e4c20ec517d07a004fa23879b2726e1757a
parent 164171 1c402a47da513701a2959972bf8852eab8809b11
child 164173 31688c2aca28ba1014ac5153f4fba25f76107a13
push id26027
push userttaubert@mozilla.com
push dateSun, 19 Jan 2014 09:43:10 +0000
treeherdermozilla-central@f038d28c0349 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs922342
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 922342 - PermissionPromptHelper.jsm takes ~220ms on startup on a galaxy nexus r=wesj
mobile/android/chrome/content/WebAppRT.js
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/WebAppRT.js
+++ b/mobile/android/chrome/content/WebAppRT.js
@@ -4,16 +4,18 @@
 let Cc = Components.classes;
 let Ci = Components.interfaces;
 let Cu = Components.utils;
 
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/FileUtils.jsm");
 Cu.import("resource://gre/modules/NetUtil.jsm");
 Cu.import("resource://gre/modules/PermissionsInstaller.jsm");
+Cu.import("resource://gre/modules/PermissionPromptHelper.jsm");
+Cu.import("resource://gre/modules/ContactService.jsm");
 
 function pref(name, value) {
   return {
     name: name,
     value: value
   }
 }
 
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -11,18 +11,16 @@ let Cu = Components.utils;
 let Cr = Components.results;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/AddonManager.jsm");
 Cu.import("resource://gre/modules/FileUtils.jsm");
 Cu.import("resource://gre/modules/JNI.jsm");
 Cu.import('resource://gre/modules/Payment.jsm');
-Cu.import("resource://gre/modules/PermissionPromptHelper.jsm");
-Cu.import("resource://gre/modules/ContactService.jsm");
 Cu.import("resource://gre/modules/NotificationDB.jsm");
 Cu.import("resource://gre/modules/SpatialNavigation.jsm");
 Cu.import("resource://gre/modules/UITelemetry.jsm");
 
 #ifdef ACCESSIBILITY
 Cu.import("resource://gre/modules/accessibility/AccessFu.jsm");
 #endif