Bug 1925995 - Shim FingerprintJS Bot Detection - r=twisniewski,webcompat-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D236024
This commit is contained in:
Benjamin VanderSloot
2025-02-05 15:03:25 +00:00
parent 383ef2ee41
commit 2b23e7bc03
5 changed files with 44 additions and 0 deletions

View File

@@ -965,6 +965,15 @@ const AVAILABLE_SHIMS = [
onlyIfBlockedByETP: true,
unblocksOnOptIn: ["*://www.tiktok.com/*"],
},
{
id: "FingerpringJSBotd",
platform: "all",
name: "FingerprintJS Bot Detection",
bug: "1925995",
file: "botd.mjs",
matches: ["*://openfpcdn.io/botd/v1"],
onlyIfBlockedByETP: true,
},
];
module.exports = AVAILABLE_SHIMS;

View File

@@ -104,6 +104,7 @@
"shims/blogger.js",
"shims/bloggerAccount.js",
"shims/bmauth.js",
"shims/botd.mjs",
"shims/branch.js",
"shims/chartbeat.js",
"shims/crave-ca.js",

View File

@@ -133,6 +133,7 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [
"shims/blogger.js",
"shims/bloggerAccount.js",
"shims/bmauth.js",
"shims/botd.mjs",
"shims/branch.js",
"shims/chartbeat.js",
"shims/crave-ca.js",

View File

@@ -0,0 +1,13 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let bd = {};
bd.detect = async function () {
return { bot: false };
};
let load = async function () {
return bd;
};
export { load, load as default };