Created
January 7, 2020 16:23
-
-
Save daleharvey/33649c0167cceec1cbebe568b71e42c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Works fine | |
const { SearchService } = ChromeUtils.import( | |
"resource://gre/modules/SearchService.jsm" | |
); | |
but | |
const { SearchTestUtils } = ChromeUtils.import( | |
"resource://testing-common/SearchTestUtils.jsm" | |
); | |
gives | |
// [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 :: | |
<TOP_LEVEL> :: line 7" data: no] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment