зеркало из https://github.com/mozilla/pjs.git
Bug 653010 - Add cookies and logins to Services.jsm. r=gavin
This commit is contained in:
Родитель
ac07e3858c
Коммит
717922681e
|
@ -134,3 +134,11 @@ XPCOMUtils.defineLazyServiceGetter(Services, "urlFormatter",
|
|||
XPCOMUtils.defineLazyServiceGetter(Services, "eTLD",
|
||||
"@mozilla.org/network/effective-tld-service;1",
|
||||
"nsIEffectiveTLDService");
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(Services, "cookies",
|
||||
"@mozilla.org/cookiemanager;1",
|
||||
"nsICookieManager2");
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(Services, "logins",
|
||||
"@mozilla.org/login-manager;1",
|
||||
"nsILoginManager");
|
||||
|
|
|
@ -71,4 +71,6 @@ function checkServices() {
|
|||
checkService("strings", Ci.nsIStringBundleService);
|
||||
checkService("urlFormatter", Ci.nsIURLFormatter);
|
||||
checkService("eTLD", Ci.nsIEffectiveTLDService);
|
||||
checkService("cookies", Ci.nsICookieManager2);
|
||||
checkService("logins", Ci.nsILoginManager);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче