Skip to content

Instantly share code, notes, and snippets.

@daleharvey
Last active June 1, 2019 21:20
Show Gist options
  • Save daleharvey/088b069505bfcf8992d76cf128aeb41e to your computer and use it in GitHub Desktop.
Save daleharvey/088b069505bfcf8992d76cf128aeb41e to your computer and use it in GitHub Desktop.
await AddonManager.installBuiltinAddon(path);
let policy = WebExtensionPolicy.getByID(id);
0:17.99 INFO Console message: _ensureEngine: [email protected]
0:17.99 INFO Console message: _ensureEngine: Installing [email protected]
0:18.00 GECKO(60643) *** Search: _buildCache: cache file written to disk.
0:17.99 INFO Console message: SearchService.init
0:17.99 INFO Console message: SearchService.init
0:18.00 GECKO(60643) *** Search: SearchService.init
0:18.00 GECKO(60643) *** Search: getDefaultEngines: engineOrder: ({Google:1, Bing:2})
0:18.00 GECKO(60643) *** Search: SearchService.init
0:18.00 GECKO(60643) *** Search: getDefaultEngines: engineOrder: ({Google:1, Bing:2})
0:18.00 INFO Console message: getDefaultEngines: engineOrder: ({Google:1, Bing:2})
0:18.00 INFO Console message: getVisibleEngines: getting all visible engines
0:18.00 INFO Console message: SearchService.init
0:18.00 INFO Console message: getVisibleEngines: getting all visible engines
0:18.00 INFO Console message: _buildCache: cache file written to disk.
0:18.00 INFO Console message: SearchService.init
0:18.00 INFO Console message: getDefaultEngines: engineOrder: ({Google:1, Bing:2})
0:18.00 INFO Console message: SearchService.init
0:18.00 INFO Console message: getDefaultEngines: engineOrder: ({Google:1, Bing:2})
0:18.01 GECKO(60643) 1559423308362 addons.xpi-utils DEBUG Make addon app-builtin:[email protected] visible
0:18.02 GECKO(60643) 1559423308363 addons.xpi DEBUG XPIStates adding add-on [email protected] in {"addons":{"[email protected]":{"dependencies":[],"enabled":false,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource:///modules/themes/light/","runInSafeMode":true,"telemetryKey":"firefox-compact-light%40mozilla.org:1.0","version":"1.0","type":"theme"},"[email protected]":{"dependencies":[],"enabled":false,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource:///modules/themes/dark/","runInSafeMode":true,"telemetryKey":"firefox-compact-dark%40mozilla.org:1.0","version":"1.0","type":"theme"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource://gre/modules/themes/default/","runInSafeMode":true,"telemetryKey":"default-theme%40mozilla.org:1.0","version":"1.0","type":"theme","startupData":{"lwtData":{"theme":{"id":"[email protected]","version":"1.0"},"darkTheme":{"accentcolor":"hsl(240, 5%, 5%)","icon_color":"rgb(249, 249, 250, 0.7)","ntp_background":"#2A2A2E","ntp_text":"rgb(249, 249, 250)","popup":"#4a4a4f","popup_border":"#27272b","popup_text":"rgb(249, 249, 250)","sidebar":"#38383D","sidebar_border":"rgba(255, 255, 255, 0.1)","sidebar_text":"rgb(249, 249, 250)","textcolor":"rgb(249, 249, 250)","tab_line":"#0a84ff","toolbarColor":"hsl(240, 1%, 20%)","toolbar_bottom_separator":"hsl(240, 5%, 5%)","toolbar_field":"rgb(71, 71, 73)","toolbar_field_border":"rgba(249, 249, 250, 0.2)","toolbar_field_separator":"#5F6670","toolbar_field_text":"rgb(249, 249, 250)","id":"[email protected]","version":"1.0"}},"lwtStyles":{"id":"[email protected]","version":"1.0"},"lwtDarkStyles":{"accentcolor":"hsl(240, 5%, 5%)","icon_color":"rgb(249, 249, 250, 0.7)","ntp_background":"#2A2A2E","ntp_text":"rgb(249, 249, 250)","popup":"#4a4a4f","popup_border":"#27272b","popup_text":"rgb(249, 249, 250)","sidebar":"#38383D","sidebar_border":"rgba(255, 255, 255, 0.1)","sidebar_text":"rgb(249, 249, 250)","textcolor":"rgb(249, 249, 250)","tab_line":"#0a84ff","toolbarColor":"hsl(240, 1%, 20%)","toolbar_bottom_separator":"hsl(240, 5%, 5%)","toolbar_field":"rgb(71, 71, 73)","toolbar_field_border":"rgba(249, 249, 250, 0.2)","toolbar_field_separator":"#5F6670","toolbar_field_text":"rgb(249, 249, 250)","id":"[email protected]","version":"1.0"}}},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/google/","runInSafeMode":true,"telemetryKey":"google%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/amazondotcom/","runInSafeMode":true,"telemetryKey":"amazondotcom%40search.mozilla.org:1.1","version":"1.1"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/bing/","runInSafeMode":true,"telemetryKey":"bing%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/ddg/","runInSafeMode":true,"telemetryKey":"ddg%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/ebay/","runInSafeMode":true,"telemetryKey":"ebay%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/twitter/","runInSafeMode":true,"telemetryKey":"twitter%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/wikipedia/","runInSafeMode":true,"telemetryKey":"wikipedia%40search.mozilla.org:1.0","version":"1.0"}},"staged":{}}: null
0:18.02 GECKO(60643) 1559423308364 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{a25d0569-3ef6-ea40-8376-fc342ef993b6}","version":"1.0","type":"extension","loader":null,"updateURL":null,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"mozSearch","description":"mozSearch Engine","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"installDate":1559423308362,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":[],"origins":[]},"icons":{"16":"favicon.ico"},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"rootURI":"resource://search-extensions/mozsearch-engine/","location":"app-builtin"}
0:18.02 GECKO(60643) 1559423308364 addons.xpi DEBUG Loading bootstrap scope from resource://search-extensions/mozsearch-engine/
0:18.02 GECKO(60643) 1559423308364 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0
0:18.02 GECKO(60643) 1559423308365 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0
0:18.02 INFO Console message: 1559423308362 addons.xpi-utils DEBUG Make addon app-builtin:[email protected] visible
0:18.02 INFO Console message: 1559423308363 addons.xpi DEBUG XPIStates adding add-on [email protected] in {"addons":{"[email protected]":{"dependencies":[],"enabled":false,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource:///modules/themes/light/","runInSafeMode":true,"telemetryKey":"firefox-compact-light%40mozilla.org:1.0","version":"1.0","type":"theme"},"[email protected]":{"dependencies":[],"enabled":false,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource:///modules/themes/dark/","runInSafeMode":true,"telemetryKey":"firefox-compact-dark%40mozilla.org:1.0","version":"1.0","type":"theme"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559414173000,"loader":null,"path":null,"rootURI":"resource://gre/modules/themes/default/","runInSafeMode":true,"telemetryKey":"default-theme%40mozilla.org:1.0","version":"1.0","type":"theme","startupData":{"lwtData":{"theme":{"id":"[email protected]","version":"1.0"},"darkTheme":{"accentcolor":"hsl(240, 5%, 5%)","icon_color":"rgb(249, 249, 250, 0.7)","ntp_background":"#2A2A2E","ntp_text":"rgb(249, 249, 250)","popup":"#4a4a4f","popup_border":"#27272b","popup_text":"rgb(249, 249, 250)","sidebar":"#38383D","sidebar_border":"rgba(255, 255, 255, 0.1)","sidebar_text":"rgb(249, 249, 250)","textcolor":"rgb(249, 249, 250)","tab_line":"#0a84ff","toolbarColor":"hsl(240, 1%, 20%)","toolbar_bottom_separator":"hsl(240, 5%, 5%)","toolbar_field":"rgb(71, 71, 73)","toolbar_field_border":"rgba(249, 249, 250, 0.2)","toolbar_field_separator":"#5F6670","toolbar_field_text":"rgb(249, 249, 250)","id":"[email protected]","version":"1.0"}},"lwtStyles":{"id":"[email protected]","version":"1.0"},"lwtDarkStyles":{"accentcolor":"hsl(240, 5%, 5%)","icon_color":"rgb(249, 249, 250, 0.7)","ntp_background":"#2A2A2E","ntp_text":"rgb(249, 249, 250)","popup":"#4a4a4f","popup_border":"#27272b","popup_text":"rgb(249, 249, 250)","sidebar":"#38383D","sidebar_border":"rgba(255, 255, 255, 0.1)","sidebar_text":"rgb(249, 249, 250)","textcolor":"rgb(249, 249, 250)","tab_line":"#0a84ff","toolbarColor":"hsl(240, 1%, 20%)","toolbar_bottom_separator":"hsl(240, 5%, 5%)","toolbar_field":"rgb(71, 71, 73)","toolbar_field_border":"rgba(249, 249, 250, 0.2)","toolbar_field_separator":"#5F6670","toolbar_field_text":"rgb(249, 249, 250)","id":"[email protected]","version":"1.0"}}},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/google/","runInSafeMode":true,"telemetryKey":"google%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/amazondotcom/","runInSafeMode":true,"telemetryKey":"amazondotcom%40search.mozilla.org:1.1","version":"1.1"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/bing/","runInSafeMode":true,"telemetryKey":"bing%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/ddg/","runInSafeMode":true,"telemetryKey":"ddg%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/ebay/","runInSafeMode":true,"telemetryKey":"ebay%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/twitter/","runInSafeMode":true,"telemetryKey":"twitter%40search.mozilla.org:1.0","version":"1.0"},"[email protected]":{"dependencies":[],"enabled":true,"lastModifiedTime":1559416883000,"loader":null,"path":null,"rootURI":"resource://search-extensions/wikipedia/","runInSafeMode":true,"telemetryKey":"wikipedia%40search.mozilla.org:1.0","version":"1.0"}},"staged":{}}: null
0:18.02 INFO Console message: 1559423308364 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{a25d0569-3ef6-ea40-8376-fc342ef993b6}","version":"1.0","type":"extension","loader":null,"updateURL":null,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"mozSearch","description":"mozSearch Engine","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"installDate":1559423308362,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":[],"origins":[]},"icons":{"16":"favicon.ico"},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":true,"installTelemetryInfo":null,"rootURI":"resource://search-extensions/mozsearch-engine/","location":"app-builtin"}
0:18.02 INFO Console message: 1559423308364 addons.xpi DEBUG Loading bootstrap scope from resource://search-extensions/mozsearch-engine/
0:18.02 INFO Console message: 1559423308364 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0
0:18.02 INFO Console message: 1559423308365 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment