forked from mirrors/gecko-dev
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:
parent
69f1453824
commit
155706267e
7 changed files with 59 additions and 2 deletions
|
|
@ -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;
|
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,
|
"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": "128.0.0",
|
"version": "129.0.0",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "webcompat@mozilla.org",
|
"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/bug1849388-kucharkaprodceru.cz-scroll-fix.css",
|
||||||
"injections/css/bug1868345-tvmovie.de-scroll-fix.css",
|
"injections/css/bug1868345-tvmovie.de-scroll-fix.css",
|
||||||
"injections/css/bug1877346-offerup.com-infinite-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",
|
"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;
|
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,
|
"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": "128.0.0",
|
"version": "129.0.0",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "webcompat@mozilla.org",
|
"id": "webcompat@mozilla.org",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue