Bug 1147554 - Lazily create desktop reading list's database connection (follow-up: revert erroneous chage). r=me, a=readinglist
authorDrew Willcoxon <adw@mozilla.com>
Wed, 01 Apr 2015 18:30:32 -0700
changeset 258184 9104d1f928a7
parent 258183 acc50d404648
child 258185 818e63fbfba2
push id4617
push userdwillcoxon@mozilla.com
push date2015-04-02 02:05 +0000
treeherdermozilla-beta@818e63fbfba2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, readinglist
bugs1147554
milestone38.0
Bug 1147554 - Lazily create desktop reading list's database connection (follow-up: revert erroneous chage). r=me, a=readinglist
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1027,17 +1027,17 @@ var gBrowserInit = {
       }
       goSetCommandEnabled("cmd_newNavigatorTab", false);
     }
 
     // Misc. inits.
     CombinedStopReload.init();
     gPrivateBrowsingUI.init();
     TabsInTitlebar.init();
-//     ReadingListUI.init();
+    ReadingListUI.init();
 
 #ifdef XP_WIN
     if (window.matchMedia("(-moz-os-version: windows-win8)").matches &&
         window.matchMedia("(-moz-windows-default-theme)").matches) {
       let windowFrameColor = Cu.import("resource:///modules/Windows8WindowFrameColor.jsm", {})
                                .Windows8WindowFrameColor.get();
 
       // Formula from W3C's WCAG 2.0 spec's color ratio and relative luminance,
@@ -1356,18 +1356,16 @@ var gBrowserInit = {
 
     gBrowserThumbnails.init();
 
     // Add Devtools menuitems and listeners
     gDevToolsBrowser.registerBrowserWindow(window);
 
     gMenuButtonUpdateBadge.init();
 
-    ReadingListUI.init();
-
     window.addEventListener("mousemove", MousePosTracker, false);
     window.addEventListener("dragover", MousePosTracker, false);
 
     gNavToolbox.addEventListener("customizationstarting", CustomizationHandler);
     gNavToolbox.addEventListener("customizationchange", CustomizationHandler);
     gNavToolbox.addEventListener("customizationending", CustomizationHandler);
 
     // End startup crash tracking after a delay to catch crashes while restoring