mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1772105 - Use plain object for lazy getter in netwerk/url-classifier/. r=mccr8
Depends on D147892 Differential Revision: https://phabricator.services.mozilla.com/D147893
This commit is contained in:
parent
fead2498cb
commit
3afd363d47
@ -6,8 +6,10 @@ function UrlClassifierExceptionListService() {}
|
||||
|
||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
const lazy = {};
|
||||
|
||||
ChromeUtils.defineModuleGetter(
|
||||
this,
|
||||
lazy,
|
||||
"RemoteSettings",
|
||||
"resource://services-settings/remote-settings.js"
|
||||
);
|
||||
@ -94,7 +96,7 @@ UrlClassifierExceptionListService.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
let rs = RemoteSettings(COLLECTION_NAME);
|
||||
let rs = lazy.RemoteSettings(COLLECTION_NAME);
|
||||
rs.on("sync", event => {
|
||||
let {
|
||||
data: { current },
|
||||
|
Loading…
x
Reference in New Issue
Block a user