Bug 1536767 - Import WebCompat GoFaster 4.1.0 sources. r=kmag,rhelmer

Differential Revision: https://phabricator.services.mozilla.com/D24150

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dennis Schubert 2019-03-22 18:21:23 +00:00
Родитель c3140fa087
Коммит 957d469f60
10 изменённых файлов: 98 добавлений и 2 удалений

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

@ -84,6 +84,24 @@ for (const injection of [
matches: ["*://*.sreedharscce.in/authenticate"],
css: [{file: "injections/css/bug1526977-sreedharscce.in-login-fix.css"}],
},
}, {
id: "bug1518781",
platform: "desktop",
domain: "twitch.tv",
bug: "1518781",
contentScripts: {
matches: ["*://*.twitch.tv/*"],
css: [{file: "injections/css/bug1518781-twitch.tv-webkit-scrollbar.css"}],
},
}, {
id: "bug1305028",
platform: "desktop",
domain: "gaming.youtube.com",
bug: "1305028",
contentScripts: {
matches: ["*://gaming.youtube.com/*"],
css: [{file: "injections/css/bug1305028-gaming.youtube.com-webkit-scrollbar.css"}],
},
},
]) {
Injections.push(injection);

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

@ -0,0 +1,14 @@
/**
* gaming.youtube.com - The vertical scrollbar displayed for the main pane is
* partially overlapped by the video itself
* Bug #1305028 - https://bugzilla.mozilla.org/show_bug.cgi?id=1305028
*
* The scrollbar in the main player area is overlapped by the player, making the
* design look broken. In Chrome, YouTube is using ::-webkit-scrollbar to style
* the bar to match their expectations, but this doesn't work in Firefox.
* To make it look less broken, we hide the scrollbar for the main video pane
* entirely.
*/
ytg-scroll-pane.ytg-watch-page {
scrollbar-width: none;
}

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

@ -0,0 +1,14 @@
/**
* twitch.tv - Comment interaction button is overlayed by scrollbar
* Bug #1518781 - https://bugzilla.mozilla.org/show_bug.cgi?id=1518781
*
* The interaction buttons in Twitch' chat are partly overlayed by the
* scrollbar, which makes them hard to use. Twitch uses
* ::-webkit-scrollbar to make the scrollbar thinner, which isn't working in
* Firefox.
* Given that even scrollbar-width: thin; is not enough (see Bugzilla), let's
* remove it entirely.
*/
.video-chat__message-list-wrapper {
scrollbar-width: none;
}

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

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Web Compat",
"description": "Urgent post-release fixes for web compatibility.",
"version": "4.0.0",
"version": "4.1.0",
"applications": {
"gecko": {

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

@ -23,6 +23,8 @@ FINAL_TARGET_FILES.features['webcompat@mozilla.org'] += [
FINAL_TARGET_FILES.features['webcompat@mozilla.org']['injections']['css'] += [
'injections/css/bug0000000-dummy-css-injection.css',
'injections/css/bug1305028-gaming.youtube.com-webkit-scrollbar.css',
'injections/css/bug1518781-twitch.tv-webkit-scrollbar.css',
'injections/css/bug1526977-sreedharscce.in-login-fix.css'
]

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

@ -84,6 +84,24 @@ for (const injection of [
matches: ["*://*.sreedharscce.in/authenticate"],
css: [{file: "injections/css/bug1526977-sreedharscce.in-login-fix.css"}],
},
}, {
id: "bug1518781",
platform: "desktop",
domain: "twitch.tv",
bug: "1518781",
contentScripts: {
matches: ["*://*.twitch.tv/*"],
css: [{file: "injections/css/bug1518781-twitch.tv-webkit-scrollbar.css"}],
},
}, {
id: "bug1305028",
platform: "desktop",
domain: "gaming.youtube.com",
bug: "1305028",
contentScripts: {
matches: ["*://gaming.youtube.com/*"],
css: [{file: "injections/css/bug1305028-gaming.youtube.com-webkit-scrollbar.css"}],
},
},
]) {
Injections.push(injection);

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

@ -0,0 +1,14 @@
/**
* gaming.youtube.com - The vertical scrollbar displayed for the main pane is
* partially overlapped by the video itself
* Bug #1305028 - https://bugzilla.mozilla.org/show_bug.cgi?id=1305028
*
* The scrollbar in the main player area is overlapped by the player, making the
* design look broken. In Chrome, YouTube is using ::-webkit-scrollbar to style
* the bar to match their expectations, but this doesn't work in Firefox.
* To make it look less broken, we hide the scrollbar for the main video pane
* entirely.
*/
ytg-scroll-pane.ytg-watch-page {
scrollbar-width: none;
}

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

@ -0,0 +1,14 @@
/**
* twitch.tv - Comment interaction button is overlayed by scrollbar
* Bug #1518781 - https://bugzilla.mozilla.org/show_bug.cgi?id=1518781
*
* The interaction buttons in Twitch' chat are partly overlayed by the
* scrollbar, which makes them hard to use. Twitch uses
* ::-webkit-scrollbar to make the scrollbar thinner, which isn't working in
* Firefox.
* Given that even scrollbar-width: thin; is not enough (see Bugzilla), let's
* remove it entirely.
*/
.video-chat__message-list-wrapper {
scrollbar-width: none;
}

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

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Web Compat",
"description": "Urgent post-release fixes for web compatibility.",
"version": "4.0.0",
"version": "4.1.0",
"applications": {
"gecko": {

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

@ -23,6 +23,8 @@ FINAL_TARGET_FILES.features['webcompat@mozilla.org'] += [
FINAL_TARGET_FILES.features['webcompat@mozilla.org']['injections']['css'] += [
'injections/css/bug0000000-dummy-css-injection.css',
'injections/css/bug1305028-gaming.youtube.com-webkit-scrollbar.css',
'injections/css/bug1518781-twitch.tv-webkit-scrollbar.css',
'injections/css/bug1526977-sreedharscce.in-login-fix.css'
]