Cu.import("resource://gre/modules/NewTabUtils.jsm");
var {
links: gLinks,
allPages: gAllPages,
linkChecker: gLinkChecker,
pinnedLinks: gPinnedLinks,
blockedLinks: gBlockedLinks,
gridPrefs: gGridPrefs
} = NewTabUtils;
and the scipt of NewTabUtils.jsm is
/**
* Singleton that provides the public API of this JSM.
*/
this.NewTabUtils = {
a_Property_is_here: false,
Some_Method_A: function Some_Method_A() {
}
Some_Method_B: function Some_Method_A() {
}
And_so_on: function And_so_on() {
}
links: Links,
allPages: AllPages,
linkChecker: LinkChecker,
pinnedLinks: PinnedL