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:
Tooru Fujisawa 2022-06-01 16:41:16 +00:00
parent fead2498cb
commit 3afd363d47

View File

@ -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 },