Bug 1836521 - Ship v116.0.0 of the WebCompat System Addon. r=webcompat-reviewers,twisniewski

Differential Revision: https://phabricator.services.mozilla.com/D182478
This commit is contained in:
Dennis Schubert 2023-06-29 17:15:13 +00:00
Родитель e00c27e9f7
Коммит 0a3e4f9f90
7 изменённых файлов: 15 добавлений и 114 удалений

Просмотреть файл

@ -287,8 +287,11 @@ const AVAILABLE_INJECTIONS = [
matches: [
"*://*.live.com/*",
"*://*.office.com/*",
"*://*.sharepoint.com/*",
"*://*.office365.com/*",
"*://*.office365.us/*",
"*://*.outlook.cn/*",
"*://*.outlook.com/*",
"*://*.sharepoint.com/*",
],
js: [
{
@ -640,7 +643,7 @@ const AVAILABLE_INJECTIONS = [
domain: "www.samsung.com",
bug: "1799968",
contentScripts: {
matches: ["*://www.samsung.com/*/watches/*/*"],
matches: ["*://www.samsung.com/*"],
js: [
{
file: "injections/js/bug1799968-www.samsung.com-appVersion-linux-fix.js",
@ -767,20 +770,6 @@ const AVAILABLE_INJECTIONS = [
],
},
},
{
id: "bug1819678",
platform: "android",
domain: "cnki.net",
bug: "1819678",
contentScripts: {
matches: ["*://*.cnki.net/*"],
js: [
{
file: "injections/js/bug1819678-cnki.net-undisable-search-field.js",
},
],
},
},
{
id: "bug1827678-webc77727",
platform: "android",
@ -987,7 +976,7 @@ const AVAILABLE_INJECTIONS = [
domain: "thai-masszazs.net",
bug: "1836157",
contentScripts: {
matches: ["*://www.thai-masszazs.net/en/*"],
matches: ["*://*.thai-masszazs.net/*"],
js: [
{
file: "injections/js/bug1836157-thai-masszazs-niceScroll-disable.js",
@ -1023,23 +1012,6 @@ const AVAILABLE_INJECTIONS = [
],
},
},
{
id: "bug1836177",
platform: "desktop",
domain: "clalit.co.il",
bug: "1836177",
contentScripts: {
matches: [
"*://e-services.clalit.co.il/OnlineWeb/General/InfoFullLogin.aspx*",
],
css: [
{
file: "injections/css/bug1836177-clalit.co.il-hide-number-input-spinners.css",
},
],
allFrames: true,
},
},
];
module.exports = AVAILABLE_INJECTIONS;

Просмотреть файл

@ -1142,28 +1142,13 @@ const AVAILABLE_UA_OVERRIDES = [
"*://*.heapsowins.com/*", // 120027
"*://*.planet7casino.com/*", // 120609
"*://*.yebocasino.co.za/*", // 88409
"*://*.yabbycasino.com/*", // 108025
],
uaTransformer: originalUA => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
* Bug 1830821 - UA override for m.tworld.co.kr
* Webcompat issue #118998 - https://webcompat.com/issues/118998
*/
id: "bug1830821-webc118998",
platform: "android",
domain: "m.tworld.co.kr",
bug: "1830821",
config: {
matches: ["*://m.tworld.co.kr/*"],
uaTransformer: originalUA => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
* Bug 1830821 - UA override for webcartop.jp
@ -1353,16 +1338,16 @@ const AVAILABLE_UA_OVERRIDES = [
/*
* Bug 1836182 - UA override for www.flatsatshadowglen.com
*
* The site's content is not loaded without a Chrome UA spoof.
* The site's content is not loaded unless a Chrome UA is used.
*/
id: "bug1836182",
platform: "all",
domain: "www.flatsatshadowglen.com",
bug: "1836182",
config: {
matches: ["*://www.flatsatshadowglen.com/*"],
matches: ["*://*.flatsatshadowglen.com/*"],
uaTransformer: originalUA => {
return originalUA + " Chrome/113.0.0.0";
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},

Просмотреть файл

@ -13,6 +13,10 @@
* Setting the same rule with -moz-range-thumb makes the slider to work.
*/
.gNPvK,
.y5iHc {
pointer-events: auto;
}
.gNPvK::-moz-range-thumb,
.y5iHc::-moz-range-thumb {
background-color: #0050ff;

Просмотреть файл

@ -1,13 +0,0 @@
/* 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/. */
/**
* clalit.co.il - Hide number input spinners as page intends
* Bug #1836177 - https://bugzilla.mozilla.org/show_bug.cgi?id=1836177
* WebCompat issue #109468 - https://github.com/webcompat/web-bugs/issues/109468
*/
input[type="number"] {
-moz-appearance: textfield;
}

Просмотреть файл

@ -1,45 +0,0 @@
/* 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 1819678 - cnki.net - Cannot use search field
* WebCompat issue #115777 - https://webcompat.com/issues/115777
*
* This patch ensures that the search input never has the [disabled]
* attribute, so that users may tap/click on it to search.
*
* See https://bugzilla.mozilla.org/show_bug.cgi?id=1819678 for details.
*/
console.info(
"search input disabled attribute was removed for compatibility reasons. See https://webcompat.com/issues/115777 for details."
);
const SELECTOR = `.searchimg[disabled]`;
function check(target) {
if (target.nodeName === "INPUT" && target.matches(SELECTOR)) {
target.removeAttribute("disabled");
return true;
}
return false;
}
new MutationObserver(mutations => {
for (const { addedNodes, target, attributeName } of mutations) {
if (attributeName === "disabled") {
check(target);
} else {
addedNodes?.forEach(node => {
if (!check(node)) {
node
.querySelectorAll?.(SELECTOR)
?.forEach(n => n.removeAttribute("disabled"));
}
});
}
}
}).observe(document, { attributes: true, childList: true, subtree: true });

Просмотреть файл

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Web Compatibility Interventions",
"description": "Urgent post-release fixes for web compatibility.",
"version": "115.2.0",
"version": "116.0.0",
"browser_specific_settings": {
"gecko": {
"id": "webcompat@mozilla.org",

Просмотреть файл

@ -74,7 +74,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [
"injections/css/bug1830813-page.onstove.com-hide-unsupported.css",
"injections/css/bug1836103-autostar-novoross.ru-make-map-taller.css",
"injections/css/bug1836105-cnn.com-fix-blank-pages-when-printing.css",
"injections/css/bug1836177-clalit.co.il-hide-number-input-spinners.css",
]
FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [
@ -100,7 +99,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [
"injections/js/bug1818818-fastclick-legacy-shim.js",
"injections/js/bug1819450-cmbchina.com-ua-change.js",
"injections/js/bug1819476-axisbank.com-webkitSpeechRecognition-shim.js",
"injections/js/bug1819678-cnki.net-undisable-search-field.js",
"injections/js/bug1819678-free4talk.com-window-chrome-shim.js",
"injections/js/bug1830776-blueshieldca.com-unsupported.js",
"injections/js/bug1831007-nintendo-window-OnetrustActiveGroups.js",