[Pkg-mozext-commits] [tabmixplus] 12/48: Follow up bug 1371677 - Delay the database connection in the history service as far as possible

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit a81acffb5a1f4a65f34f5dc2c78bfe6016a4f840
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Jul 12 22:20:19 2017 +0300

    Follow up bug 1371677 - Delay the database connection in the history service as far as possible
---
 chrome/content/places/places.js | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 6c0717e..78aa50d 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -522,7 +522,11 @@ var TMP_Places = {
     // Start observing bookmarks if needed.
     if (!this._hasBookmarksObserver) {
       try {
-        PlacesUtils.addLazyBookmarkObserver(this);
+        if (Tabmix.isVersion(560)) {
+          PlacesUtils.bookmarks.addObserver(this);
+        } else {
+          PlacesUtils.addLazyBookmarkObserver(this);
+        }
         this._hasBookmarksObserver = true;
       } catch (ex) {
         Tabmix.reportError(ex, "Failed to add bookmarks observer:");
@@ -532,7 +536,11 @@ var TMP_Places = {
 
   stopObserver: function TMP_PC_stopObserver() {
     if (this._hasBookmarksObserver) {
-      PlacesUtils.removeLazyBookmarkObserver(this);
+      if (Tabmix.isVersion(560)) {
+        PlacesUtils.bookmarks.removeObserver(this);
+      } else {
+        PlacesUtils.removeLazyBookmarkObserver(this);
+      }
       this._hasBookmarksObserver = false;
     }
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list