Bug 1882040 - Add a webcompat intervention to disable pull-to-refresh on the YouTube Shorts mobile page; r=ksenia,webcompat-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D214434
This commit is contained in:
Thomas Wisniewski 2024-06-20 19:46:15 +00:00
Родитель 69f1453824
Коммит 155706267e
7 изменённых файлов: 59 добавлений и 2 удалений

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

@ -1058,6 +1058,20 @@ const AVAILABLE_INJECTIONS = [
],
},
},
{
id: "1882040",
platform: "android",
domain: "YouTube Shorts",
bug: "1882040",
contentScripts: {
matches: ["*://m.youtube.com/shorts/*"],
css: [
{
file: "injections/css/bug1882040-disable-pull-to-refresh.css",
},
],
},
},
];
module.exports = AVAILABLE_INJECTIONS;

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

@ -0,0 +1,14 @@
/* 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/. */
/**
* m.youtube.com/shorts - pull-to-refresh breaks scrolling
* Bug #1882040 - https://bugzilla.mozilla.org/show_bug.cgi?id=1882040
*
* Pull-to-refresh is breaking scrolling on the YouTube Shorts mobile page.
* The easiest work-around is to inject this CSS to disable it for now.
*/
html {
overscroll-behavior: contain;
}

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

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

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

@ -73,6 +73,7 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [
"injections/css/bug1849388-kucharkaprodceru.cz-scroll-fix.css",
"injections/css/bug1868345-tvmovie.de-scroll-fix.css",
"injections/css/bug1877346-offerup.com-infinite-scroll-fix.css",
"injections/css/bug1882040-disable-pull-to-refresh.css",
"injections/css/bug1884842-foodora.cz-height-fix.css",
]

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

@ -1058,6 +1058,20 @@ const AVAILABLE_INJECTIONS = [
],
},
},
{
id: "1882040",
platform: "android",
domain: "YouTube Shorts",
bug: "1882040",
contentScripts: {
matches: ["*://m.youtube.com/shorts/*"],
css: [
{
file: "injections/css/bug1882040-disable-pull-to-refresh.css",
},
],
},
},
];
module.exports = AVAILABLE_INJECTIONS;

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

@ -0,0 +1,14 @@
/* 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/. */
/**
* m.youtube.com/shorts - pull-to-refresh breaks scrolling
* Bug #1882040 - https://bugzilla.mozilla.org/show_bug.cgi?id=1882040
*
* Pull-to-refresh is breaking scrolling on the YouTube Shorts mobile page.
* The easiest work-around is to inject this CSS to disable it for now.
*/
html {
overscroll-behavior: contain;
}

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

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