Bug 1925995 - Shim FingerprintJS Bot Detection - r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D236024
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
13
browser/extensions/webcompat/shims/botd.mjs
Normal file
13
browser/extensions/webcompat/shims/botd.mjs
Normal 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 };
|
||||
Reference in New Issue
Block a user