Skip to content

Instantly share code, notes, and snippets.

@daleharvey
Created January 7, 2020 16:14
Show Gist options
  • Save daleharvey/317a87149b93d3b09de68dffabfbc36a to your computer and use it in GitHub Desktop.
Save daleharvey/317a87149b93d3b09de68dffabfbc36a to your computer and use it in GitHub Desktop.
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetters(this, {
Services: "resource://gre/modules/Services.jsm",
SearchTestUtils: "resource://testing-common/SearchTestUtils.jsm",
});
async function getLocales() {
console.log(SearchTestUtils);
}
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"
location: "JS frame :: file:///Users/dale/src/search-helper-extension/extension/experiments/searchengines/api.js ::
getLocales :: line 9" data: no]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment