|
地板
楼主 |
发表于 2020-8-26 17:18:13
|
只看该作者
- XPCOMUtils.defineLazyServiceGetter(
- this,
- "checker",
- "@mozilla.org/updates/update-checker;1",
- "nsIUpdateChecker"
- );
-
- 根据 update-checker 搜索
- https://searchfox.org/comm-central/source/mozilla/toolkit/mozapps/update/components.conf#22
-
- {
- 'cid': '{898CDC9B-E43F-422F-9CC4-2F6291B415A3}',
- 'contract_ids': ['@mozilla.org/updates/update-checker;1'],
- 'jsm': 'resource://gre/modules/UpdateService.jsm',
- 'constructor': 'Checker',
- },
-
-
- UpdateService.jsm 实现?
-
-
- XPCOMUtils.defineLazyServiceGetter(
- this,
- "aus",
- "@mozilla.org/updates/update-service;1",
- "nsIApplicationUpdateService"
- );
-
- https://searchfox.org/comm-central/source/mozilla/toolkit/mozapps/update/components.conf#10
- {
- 'cid': '{B3C290A6-3943-4B89-8BBE-C01EB7B3B311}',
- 'contract_ids': ['@mozilla.org/updates/update-service;1'],
- 'jsm': 'resource://gre/modules/UpdateService.jsm',
- 'constructor': 'UpdateService',
- },
-
- UpdateService.jsm 实现?
-
-
- const PREF_APP_UPDATE_BACKGROUNDERRORS = "app.update.backgroundErrors";
复制代码 |
|