mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 567583 - Get tabs sync to work for SeaMonkey, r=mconnor
This commit is contained in:
parent
1696d67e10
commit
cfb6a32501
@ -890,6 +890,13 @@ let Svc = {};
|
||||
Svc.Prefs = new Preferences(PREFS_BRANCH);
|
||||
Svc.DefaultPrefs = new Preferences({branch: PREFS_BRANCH, defaultBranch: true});
|
||||
Svc.Obs = Observers;
|
||||
|
||||
this.__defineGetter__("_sessionCID", function() {
|
||||
//sets session CID based on browser type
|
||||
let appInfo = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo);
|
||||
return appInfo.ID == SEAMONKEY_ID ? "@mozilla.org/suite/sessionstore;1"
|
||||
: "@mozilla.org/browser/sessionstore;1";
|
||||
});
|
||||
[["Annos", "@mozilla.org/browser/annotation-service;1", "nsIAnnotationService"],
|
||||
["AppInfo", "@mozilla.org/xre/app-info;1", "nsIXULAppInfo"],
|
||||
["Bookmark", "@mozilla.org/browser/nav-bookmarks-service;1", "nsINavBookmarksService"],
|
||||
@ -912,7 +919,7 @@ Svc.Obs = Observers;
|
||||
["Version", "@mozilla.org/xpcom/version-comparator;1", "nsIVersionComparator"],
|
||||
["WinMediator", "@mozilla.org/appshell/window-mediator;1", "nsIWindowMediator"],
|
||||
["WinWatcher", "@mozilla.org/embedcomp/window-watcher;1", "nsIWindowWatcher"],
|
||||
["Session", "@mozilla.org/browser/sessionstore;1", "nsISessionStore"],
|
||||
["Session", this._sessionCID, "nsISessionStore"],
|
||||
].forEach(function(lazy) Utils.lazySvc(Svc, lazy[0], lazy[1], lazy[2]));
|
||||
|
||||
let Str = {};
|
||||
|
Loading…
Reference in New Issue
Block a user