зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1713699 - Add a SmartBlock shim for Chartbeat Superfly; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119883
This commit is contained in:
Родитель
0995284f7d
Коммит
172d2b2de9
|
@ -125,6 +125,18 @@ const AVAILABLE_SHIMS = [
|
||||||
matches: ["*://auth.9c9media.ca/auth/main.js"],
|
matches: ["*://auth.9c9media.ca/auth/main.js"],
|
||||||
onlyIfBlockedByETP: true,
|
onlyIfBlockedByETP: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "Chartbeat",
|
||||||
|
platform: "all",
|
||||||
|
name: "Chartbeat",
|
||||||
|
bug: "1713699",
|
||||||
|
file: "chartbeat.js",
|
||||||
|
matches: [
|
||||||
|
"*://static.chartbeat.com/js/chartbeat.js",
|
||||||
|
"*://static.chartbeat.com/js/chartbeat_video.js",
|
||||||
|
],
|
||||||
|
onlyIfBlockedByETP: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "Doubleclick",
|
id: "Doubleclick",
|
||||||
platform: "all",
|
platform: "all",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Web Compatibility Interventions",
|
"name": "Web Compatibility Interventions",
|
||||||
"description": "Urgent post-release fixes for web compatibility.",
|
"description": "Urgent post-release fixes for web compatibility.",
|
||||||
"version": "24.2.0",
|
"version": "24.3.0",
|
||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
@ -92,6 +92,7 @@
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
"shims/adsafeprotected-ima.js",
|
"shims/adsafeprotected-ima.js",
|
||||||
"shims/bmauth.js",
|
"shims/bmauth.js",
|
||||||
|
"shims/chartbeat.js",
|
||||||
"shims/eluminate.js",
|
"shims/eluminate.js",
|
||||||
"shims/empty-script.js",
|
"shims/empty-script.js",
|
||||||
"shims/empty-shim.txt",
|
"shims/empty-shim.txt",
|
||||||
|
|
|
@ -81,6 +81,7 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [
|
||||||
FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [
|
FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [
|
||||||
"shims/adsafeprotected-ima.js",
|
"shims/adsafeprotected-ima.js",
|
||||||
"shims/bmauth.js",
|
"shims/bmauth.js",
|
||||||
|
"shims/chartbeat.js",
|
||||||
"shims/eluminate.js",
|
"shims/eluminate.js",
|
||||||
"shims/empty-script.js",
|
"shims/empty-script.js",
|
||||||
"shims/empty-shim.txt",
|
"shims/empty-shim.txt",
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* 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/. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bug 1713699 - Shim ChartBeat tracking
|
||||||
|
*
|
||||||
|
* Sites may rely on chartbeat's tracking as they might with Google Analytics,
|
||||||
|
* expecting it to be present for interactive site content to function. This
|
||||||
|
* shim mitigates related breakage.
|
||||||
|
*/
|
||||||
|
|
||||||
|
window.pSUPERFLY = {
|
||||||
|
activity() {},
|
||||||
|
virtualPage() {},
|
||||||
|
};
|
Загрузка…
Ссылка в новой задаче