Skip to content

Instantly share code, notes, and snippets.

View daleharvey's full-sized avatar

Dale Harvey daleharvey

View GitHub Profile
dump(`${lon}\n`);
dump(`${lat}\n`);
dump(`${region.properties.alpha2}\n`);
dump(`${lon},${lat},${region.properties.alpha2}\n`);
// Output
-70.6400819
-33.4961839
CL
"use strict";
const { HttpServer } = ChromeUtils.import("resource://testing-common/httpd.js");
const { Region } = ChromeUtils.import("resource://gre/modules/Region.jsm");
function useHttpServer() {
let server = new HttpServer();
server.start(-1);
Services.prefs.setCharPref(
"browser.region.network.url",
#!/bin/python
import json
import requests
#API_ENDPOINT = \
# "https://settings-writer.stage.mozaws.net/v1/" + \
# "buckets/main-workspace/collections/search-config/records"
API_ENDPOINT = \
"https://settings-writer.prod.mozaws.net/v1/" + \
0:10.14 INFO "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB: blocklists/plugins list() IndexedDB: execute() The application is shutting down" {file: "resource://services-settings/Database.jsm" line: 28}]
IndexedDBError@resource://services-settings/Database.jsm:28:5
list@resource://services-settings/Database.jsm:88:13
async*get@resource://services-settings/RemoteSettingsClient.jsm:327:32
async*_updateEntries@resource://gre/modules/Blocklist.jsm:656:40
_ensureEntries@resource://gre/modules/Blocklist.jsm:640:18
async*getState@resource://gre/modules/Blocklist.jsm:907:16
getPluginBlocklistState@resource://gre/modules/Blocklist.jsm:1448:30
getPluginBlocklistState@resource://gre/modules/addonManager.js:375:24
_execute_test@/Users/dale/src/gecko/testing/xpcshell/head.js:648:16
!!! google-b-d:undefined
!!! amazon-en-GB:8
!!! ddg:undefined
!!! ebay-uk:7
!!! wikipedia:undefined
!!! bing:undefined
!!! twitter:undefined
const policy = WebExtensionPolicy.getByID("[email protected]");
await policy.extension.upgrade(extInfo);
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const { ExtensionTestUtils } = ChromeUtils.import(
"resource://testing-common/ExtensionXPCShellUtils.jsm"
);
const {
0:02.27 INFO exiting test
0:02.27 INFO "CONSOLE_MESSAGE: (error) [JavaScript Error: "[object ErrorEvent]" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 328}]
get@resource://services-settings/RemoteSettingsClient.jsm:328:12
async*_getConfiguration@resource://gre/modules/SearchEngineSelector.jsm:133:41
getEngineConfiguration@resource://gre/modules/SearchEngineSelector.jsm:103:71
fetchEngineConfiguration@resource://gre/modules/SearchEngineSelector.jsm:176:18
test_application_name@/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/_tests/xpcshell/toolkit/components/search/tests/xpcshell/test_distributions.js:330:39
_run_next_test/<@/Users/dale/src/gecko/testing/xpcshell/head.js:1567:22
_run_next_test@/Users/dale/src/gecko/testing/xpcshell/head.js:1567:38
diff --git a/browser/components/search/extensions/1und1/favicon.ico b/browser/components/search/extensions/1und1/favicon.ico
new file mode 100644
index 000000000000..ac5a2bbb0a28
Binary files /dev/null and b/browser/components/search/extensions/1und1/favicon.ico differ
diff --git a/browser/components/search/extensions/1und1/manifest.json b/browser/components/search/extensions/1und1/manifest.json
new file mode 100644
index 000000000000..5ffff80ce416
--- /dev/null
+++ b/browser/components/search/extensions/1und1/manifest.json
@@ -0,0 +1,27 @@
// test.js:
dump("!!! ABOUT TO CALL UPGRADE\n");
await extension.upgrade(extInfo("example", "Example", "2.0"));
dump("!!! CALLED UPGRADE\n");
// ext-chrome-settings-overrides.js:
dump("!!!! addSearchEngine - 4\n");