icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -121,15 +121,7 @@ function download(filename) {
);
}
let resultDecoded;
try {
resultDecoded = atob(req.responseText);
} catch (e) {
throw new Error(
"ERROR: could not decode data as base64 from '" + filename + "': " + e
);
}
return resultDecoded;
return req.responseText;
}
function downloadAsJson(filename) {

View file

@ -17,7 +17,7 @@ const { FileUtils } = ChromeUtils.importESModule(
);
const SOURCE =
"https://chromium.googlesource.com/chromium/src/+/refs/heads/main/net/http/transport_security_state_static.json?format=TEXT";
"https://raw.githubusercontent.com/chromium/chromium/main/net/http/transport_security_state_static.json";
const TOOL_SOURCE =
"https://hg.mozilla.org/mozilla-central/file/default/taskcluster/docker/periodic-updates/scripts/getHSTSPreloadList.js";
const OUTPUT = "nsSTSPreloadList.inc";
@ -52,17 +52,8 @@ async function download() {
}
let text = await resp.text();
let resultDecoded;
try {
resultDecoded = atob(text);
} catch (e) {
throw new Error(
"ERROR: could not decode data as base64 from '" + SOURCE + "': " + e
);
}
// we have to filter out '//' comments, while not mangling the json
let result = resultDecoded.replace(/^(\s*)?\/\/[^\n]*\n/gm, "");
let result = text.replace(/^(\s*)?\/\/[^\n]*\n/gm, "");
let data = null;
try {
data = JSON.parse(result);