diff options
Diffstat (limited to 'browser/extensions/webcompat')
12 files changed, 98 insertions, 296 deletions
diff --git a/browser/extensions/webcompat/data/injections.js b/browser/extensions/webcompat/data/injections.js index c541622914..87b1da747b 100644 --- a/browser/extensions/webcompat/data/injections.js +++ b/browser/extensions/webcompat/data/injections.js @@ -186,20 +186,6 @@ const AVAILABLE_INJECTIONS = [ }, }, { - id: "bug1654877", - platform: "android", - domain: "preev.com", - bug: "1654877", - contentScripts: { - matches: ["*://preev.com/*"], - css: [ - { - file: "injections/css/bug1654877-preev.com-moz-appearance-fix.css", - }, - ], - }, - }, - { id: "bug1654907", platform: "android", domain: "reactine.ca", @@ -214,24 +200,6 @@ const AVAILABLE_INJECTIONS = [ }, }, { - id: "bug1631811", - platform: "all", - domain: "datastudio.google.com", - bug: "1631811", - contentScripts: { - matches: [ - "https://datastudio.google.com/embed/reporting/*", - "https://lookerstudio.google.com/embed/reporting/*", - ], - js: [ - { - file: "injections/js/bug1631811-datastudio.google.com-indexedDB.js", - }, - ], - allFrames: true, - }, - }, - { id: "bug1694470", platform: "android", domain: "m.myvidster.com", @@ -426,23 +394,6 @@ const AVAILABLE_INJECTIONS = [ }, }, { - id: "bug1790750", - platform: "all", - domain: "relearnings.com", - bug: "1790750", - contentScripts: { - matches: [ - "https://relearnings.com/linkedinlearning.html", // Bug 1790750 - ], - js: [ - { - file: "injections/js/bug1790750-relearnings.com-linkedinlearning-iframe-fix.js", - }, - ], - allFrames: true, - }, - }, - { id: "bug1859617", platform: "all", domain: "Sites relying on there being no window.InstallTrigger", @@ -557,11 +508,12 @@ const AVAILABLE_INJECTIONS = [ "*://*.avanabayview.com/*", // #118617 "*://*.breakpointeandcoronado.com/*", // #117735 "*://*.courtsatspringmill.com/*", // #128404 + "*://*.fieldstoneamherst.com/*", // #132974 "*://*.gslbriarcreek.com/*", // #126401 + "*://*.hpixeniatrails.com/*", // #131703 "*://*.liveatlasathens.com/*", // #111189 "*://*.liveobserverpark.com/*", // #105244 "*://*.liveupark.com/*", // #121083 - "*://*.metropolisapt.com/*", // #129105 "*://*.midwayurban.com/*", // #116523 "*://*.nhcalaska.com/*", "*://*.prospectportal.com/*", // #115206 @@ -569,7 +521,6 @@ const AVAILABLE_INJECTIONS = [ "*://*.thefoundryat41st.com/*", // #128994 "*://*.theloftsorlando.com/*", "*://*.vanallenapartments.com/*", // #120056 - "*://*.waterfordapartmentstulsa.com/*", // #125870 ], css: [ { @@ -958,20 +909,6 @@ const AVAILABLE_INJECTIONS = [ }, }, { - id: "bug1848716", - platform: "desktop", - domain: "elal.com", - bug: "1848716", - contentScripts: { - matches: ["*://*.elal.com/*"], - css: [ - { - file: "injections/css/bug1848716-elal.com-unsupported-banner.css", - }, - ], - }, - }, - { id: "bug1848849", platform: "all", domain: "theaa.com", @@ -1091,6 +1028,34 @@ const AVAILABLE_INJECTIONS = [ ], }, }, + { + id: "bug1877346", + platform: "android", + domain: "offerup.com", + bug: "1877346", + contentScripts: { + matches: ["*://offerup.com/*"], + css: [ + { + file: "injections/css/bug1877346-offerup.com-infinite-scroll-fix.css", + }, + ], + }, + }, + { + id: "bug1884842", + platform: "android", + domain: "foodora.cz", + bug: "1884842", + contentScripts: { + matches: ["*://*.foodora.cz/*"], + css: [ + { + file: "injections/css/bug1884842-foodora.cz-height-fix.css", + }, + ], + }, + }, ]; module.exports = AVAILABLE_INJECTIONS; diff --git a/browser/extensions/webcompat/data/shims.js b/browser/extensions/webcompat/data/shims.js index 16919dbec7..f26ad96d04 100644 --- a/browser/extensions/webcompat/data/shims.js +++ b/browser/extensions/webcompat/data/shims.js @@ -321,17 +321,6 @@ const AVAILABLE_SHIMS = [ onlyIfBlockedByETP: true, }, { - id: "PBMWebAPIFixes", - platform: "all", - name: "Private Browsing Web APIs", - bug: "1773110", - runFirst: "private-browsing-web-api-fixes.js", - matches: [ - "*://*.imgur.io/js/vendor.*.js", // Mobile: imgur.io (bug 1742344); desktop: imgur.com (unaffected) - ], - onlyIfPrivateBrowsing: true, - }, - { id: "Eluminate", platform: "all", name: "Eluminate", diff --git a/browser/extensions/webcompat/data/ua_overrides.js b/browser/extensions/webcompat/data/ua_overrides.js index cabaed5bf9..3645e962f0 100644 --- a/browser/extensions/webcompat/data/ua_overrides.js +++ b/browser/extensions/webcompat/data/ua_overrides.js @@ -290,25 +290,6 @@ const AVAILABLE_UA_OVERRIDES = [ }, { /* - * Bug 1595215 - UA overrides for Uniqlo sites - * Webcompat issue #38825 - https://webcompat.com/issues/38825 - * - * To receive the proper mobile version instead of the desktop version or - * avoid redirect loop, the UA is spoofed. - */ - id: "bug1595215", - platform: "android", - domain: "uniqlo.com", - bug: "1595215", - config: { - matches: ["*://*.uniqlo.com/*"], - uaTransformer: originalUA => { - return originalUA + " Mobile Safari"; - }, - }, - }, - { - /* * Bug 1622063 - UA override for wp1-ext.usps.gov * Webcompat issue #29867 - https://webcompat.com/issues/29867 * @@ -685,42 +666,6 @@ const AVAILABLE_UA_OVERRIDES = [ }, { /* - * Bug 1790698 - UA override for wolf777.com - * Webcompat issue #103981 - https://webcompat.com/issues/103981 - * - * Add 'Linux; ' next to the Android version or the site breaks - */ - id: "bug1790698", - platform: "android", - domain: "wolf777.com", - bug: "1790698", - config: { - matches: ["*://wolf777.com/*"], - uaTransformer: originalUA => { - return originalUA.replace("Android", "Linux; Android"); - }, - }, - }, - { - /* - * Bug 1800936 - UA override for cov19ent.kdca.go.kr - * Webcompat issue #110655 - https://webcompat.com/issues/110655 - * - * Add 'Chrome;' to the UA for the site to load styles - */ - id: "bug1800936", - platform: "all", - domain: "cov19ent.kdca.go.kr", - bug: "1800936", - config: { - matches: ["*://cov19ent.kdca.go.kr/*"], - uaTransformer: originalUA => { - return originalUA + " Chrome"; - }, - }, - }, - { - /* * Bug 1819702 - UA override for feelgoodcontacts.com * Webcompat issue #118030 - https://webcompat.com/issues/118030 * @@ -916,22 +861,6 @@ const AVAILABLE_UA_OVERRIDES = [ }, { /* - * Bug 1827678 - UA override for f2bbs.com - * Webcompat issue #84932 - https://webcompat.com/issues/84932 - */ - id: "bug1827678-webc84932", - platform: "android", - domain: "f2bbs.com", - bug: "1827678", - config: { - matches: ["*://f2bbs.com/*"], - uaTransformer: originalUA => { - return UAHelpers.getDeviceAppropriateChromeUA(); - }, - }, - }, - { - /* * Bug 1827678 - UA override for kt.com * Webcompat issue #119012 - https://webcompat.com/issues/119012 */ @@ -964,22 +893,6 @@ const AVAILABLE_UA_OVERRIDES = [ }, { /* - * Bug 1827678 - UA override for sistema.ibglbrasil.com.br - * Webcompat issue #119785 - https://webcompat.com/issues/119785 - */ - id: "bug1827678-webc119785", - platform: "all", - domain: "sistema.ibglbrasil.com.br", - bug: "1827678", - config: { - matches: ["*://sistema.ibglbrasil.com.br/*"], - uaTransformer: originalUA => { - return UAHelpers.getDeviceAppropriateChromeUA(); - }, - }, - }, - { - /* * Bug 1827678 - UA override for onp.cloud.waterloo.ca * Webcompat issue #120450 - https://webcompat.com/issues/120450 */ @@ -1053,23 +966,6 @@ const AVAILABLE_UA_OVERRIDES = [ }, { /* - * Bug 1751604 - UA override for /www.otsuka.co.jp/fib/ - * - * The site's content is not loaded on mobile unless a Chrome UA is used. - */ - id: "bug1829126", - platform: "android", - domain: "www.otsuka.co.jp", - bug: "1829126", - config: { - matches: ["*://www.otsuka.co.jp/fib/*"], - uaTransformer: originalUA => { - return UAHelpers.getDeviceAppropriateChromeUA(); - }, - }, - }, - { - /* * Bug 1836109 - UA override for watch.tonton.com.my * * The site's content is not loaded unless a Chrome UA is used. @@ -1298,6 +1194,8 @@ const AVAILABLE_UA_OVERRIDES = [ "*://thematiques.metro.fr/*", "*://volantino.metro.it/*", "*://view.publitas.com/*", + "*://magazine.kruidvat.be/*", + "*://folder.kruidvat.nl/*", ], uaTransformer: originalUA => { return UAHelpers.getDeviceAppropriateChromeUA(); @@ -1377,6 +1275,24 @@ const AVAILABLE_UA_OVERRIDES = [ }, }, }, + { + /* + * Bug 1884779 - UA override for + * Webcompat issue #134287 - https://webcompat.com/issues/134287 + * + * The site returns desktop layout on Firefox for Android + */ + id: "bug1884779", + platform: "android", + domain: "memurlar.net", + bug: "1884779", + config: { + matches: ["*://*.memurlar.net/*"], + uaTransformer: originalUA => { + return UAHelpers.getDeviceAppropriateChromeUA(); + }, + }, + }, ]; module.exports = AVAILABLE_UA_OVERRIDES; diff --git a/browser/extensions/webcompat/injections/css/bug1654877-preev.com-moz-appearance-fix.css b/browser/extensions/webcompat/injections/css/bug1654877-preev.com-moz-appearance-fix.css deleted file mode 100644 index b13c3052f3..0000000000 --- a/browser/extensions/webcompat/injections/css/bug1654877-preev.com-moz-appearance-fix.css +++ /dev/null @@ -1,19 +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/. */ - -/** - * preev.com - typed numbers are not fully visible - * Bug #1654877 - https://bugzilla.mozilla.org/show_bug.cgi?id=1654877 - * WebCompat issue #55099 - https://webcompat.com/issues/55099 - * - * It's hard to see the entered number because the spin button is - * taking too much space. While there is -moz-appearance: textfield, - * -webkit-appearance: none; underneath supersedes it, - * leaving the spin button visible. Adding -moz-appearance: textfield; - * as a separate rule fixes the issue - */ -input[type="number"], -input[type="text"] { - -moz-appearance: textfield; -} diff --git a/browser/extensions/webcompat/injections/css/bug1848716-elal.com-unsupported-banner.css b/browser/extensions/webcompat/injections/css/bug1848716-elal.com-unsupported-banner.css deleted file mode 100644 index 22c81e50c5..0000000000 --- a/browser/extensions/webcompat/injections/css/bug1848716-elal.com-unsupported-banner.css +++ /dev/null @@ -1,16 +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/. */ - -/** - * www.elal.com - Firefox is an unsupported browser - * Bug #1848716 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848716 - * WebCompat issue #85474 - https://github.com/webcompat/web-bugs/issues/85474 - * - * As everything seems to work just fine, this intervention simply hides the - * banner. - */ - -.pnlOldBrowser { - display: none !important; -} diff --git a/browser/extensions/webcompat/injections/css/bug1877346-offerup.com-infinite-scroll-fix.css b/browser/extensions/webcompat/injections/css/bug1877346-offerup.com-infinite-scroll-fix.css new file mode 100644 index 0000000000..24681686f4 --- /dev/null +++ b/browser/extensions/webcompat/injections/css/bug1877346-offerup.com-infinite-scroll-fix.css @@ -0,0 +1,20 @@ +/* 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/. */ + +/** + * offerup.com - Infinite scroll doesn't work + * Bug #1720060 - https://bugzilla.mozilla.org/show_bug.cgi?id=1720060 + * + * The site uses IntersectionObserver to show new items on the page, + * as the page being scrolled and it doesn't work with with + * Dynamic Toolbar enabled. Adding an empty element after the content + * to make up for the height of the dynamic toolbar makes it work. + */ + +#__next::after { + display: block; + width: 100%; + height: 10px; + content: ""; +} diff --git a/browser/extensions/webcompat/injections/css/bug1884842-foodora.cz-height-fix.css b/browser/extensions/webcompat/injections/css/bug1884842-foodora.cz-height-fix.css new file mode 100644 index 0000000000..eb43bc5203 --- /dev/null +++ b/browser/extensions/webcompat/injections/css/bug1884842-foodora.cz-height-fix.css @@ -0,0 +1,25 @@ +/* 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/. */ + +/** + * foodora.cz - Unable to pick an address + * Bug #1884842 - https://bugzilla.mozilla.org/show_bug.cgi?id=1884842 + * WebCompat issue #130975 - https://github.com/webcompat/web-bugs/issues/130975 + * + * Unable to confirm an adress on the delivery site due to button being outside + * the viewport and parent container unscrollable. + * Depends on https://bugzilla.mozilla.org/show_bug.cgi?id=1481876 + */ + +@media (max-width: 527.98px) { + .bds-c-modal--is-mobile-bottom-sheet .bds-c-modal__content-window { + height: 100%; + } +} + +@media (min-height: 528px) { + .map-modal__map.map-box { + height: 362px; + } +} diff --git a/browser/extensions/webcompat/injections/js/bug1631811-datastudio.google.com-indexedDB.js b/browser/extensions/webcompat/injections/js/bug1631811-datastudio.google.com-indexedDB.js deleted file mode 100644 index fb9be74039..0000000000 --- a/browser/extensions/webcompat/injections/js/bug1631811-datastudio.google.com-indexedDB.js +++ /dev/null @@ -1,22 +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 1631811 - disable indexedDB for datastudio.google.com iframes - * - * Indexed DB is disabled already for these iframes due to cookie blocking. - * This intervention changes the functionality from throwing a SecurityError - * when indexedDB is accessed to removing it from the window object - */ - -console.info( - "window.indexedDB has been overwritten for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1631811 for details." -); - -Object.defineProperty(window.wrappedJSObject, "indexedDB", { - get: undefined, - set: undefined, -}); diff --git a/browser/extensions/webcompat/injections/js/bug1790750-relearnings.com-linkedinlearning-iframe-fix.js b/browser/extensions/webcompat/injections/js/bug1790750-relearnings.com-linkedinlearning-iframe-fix.js deleted file mode 100644 index 4ad0e6f4e7..0000000000 --- a/browser/extensions/webcompat/injections/js/bug1790750-relearnings.com-linkedinlearning-iframe-fix.js +++ /dev/null @@ -1,33 +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 1790750 - The page is blank on relearnings.com/linkedinlearning.html - * with ETP set to Standard - * - * The linkedin video iframe loaded on relearnings.com/linkedinlearning.html is - * denied storage access by ETP due to being a tracker breaking the website. - * Since the iframe is a video which users want to access if visiting the URL - * this intervention sets the window location to the iframe URL allowing it - * first party storage access. - */ - -/* globals exportFunction */ - -const LINKEDIN_LEARNING_PATH_PREFIX = - "https://www.linkedin.com/learning/embed/"; - -document.addEventListener("DOMContentLoaded", function () { - let iframes = document.getElementsByTagName("iframe"); - if (iframes.length === 1) { - if (iframes[0].src.startsWith(LINKEDIN_LEARNING_PATH_PREFIX)) { - window.location = iframes[0].src; - console.info( - "The window.location has been changed for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1790750 for details." - ); - } - } -}); diff --git a/browser/extensions/webcompat/manifest.json b/browser/extensions/webcompat/manifest.json index 9a15ba3aee..f15b3bb938 100644 --- a/browser/extensions/webcompat/manifest.json +++ b/browser/extensions/webcompat/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Web Compatibility Interventions", "description": "Urgent post-release fixes for web compatibility.", - "version": "123.1.0", + "version": "125.0.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org", @@ -145,7 +145,6 @@ "shims/nielsen.js", "shims/optimizely.js", "shims/play.svg", - "shims/private-browsing-web-api-fixes.js", "shims/rambler-authenticator.js", "shims/rich-relevance.js", "shims/salesforce.js", diff --git a/browser/extensions/webcompat/moz.build b/browser/extensions/webcompat/moz.build index 2a3c9e3c9b..a40641f33b 100644 --- a/browser/extensions/webcompat/moz.build +++ b/browser/extensions/webcompat/moz.build @@ -49,7 +49,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [ "injections/css/bug1644830-missingmail.usps.com-checkboxes-not-visible.css", "injections/css/bug1651917-teletrader.com.body-transform-origin.css", "injections/css/bug1653075-livescience.com-scrollbar-width.css", - "injections/css/bug1654877-preev.com-moz-appearance-fix.css", "injections/css/bug1654907-reactine.ca-hide-unsupported.css", "injections/css/bug1694470-myvidster.com-content-not-shown.css", "injections/css/bug1707795-office365-sheets-overscroll-disable.css", @@ -72,11 +71,12 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [ "injections/css/bug1836105-cnn.com-fix-blank-pages-when-printing.css", "injections/css/bug1848711-vio.com-page-height.css", "injections/css/bug1848713-cleanrider.com-slider.css", - "injections/css/bug1848716-elal.com-unsupported-banner.css", "injections/css/bug1848849-theaa.com-printing-mode-fix.css", "injections/css/bug1849019-axa-assistance.pl-datepicker-fix.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/bug1884842-foodora.cz-height-fix.css", ] FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [ @@ -86,13 +86,11 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [ "injections/js/bug1457335-histography.io-ua-change.js", "injections/js/bug1472075-bankofamerica.com-ua-change.js", "injections/js/bug1579159-m.tailieu.vn-pdfjs-worker-disable.js", - "injections/js/bug1631811-datastudio.google.com-indexedDB.js", "injections/js/bug1722955-frontgate.com-ua-override.js", "injections/js/bug1724868-news.yahoo.co.jp-ua-override.js", "injections/js/bug1739489-draftjs-beforeinput.js", "injections/js/bug1769762-tiktok.com-plugins-shim.js", "injections/js/bug1774005-installtrigger-shim.js", - "injections/js/bug1790750-relearnings.com-linkedinlearning-iframe-fix.js", "injections/js/bug1799968-www.samsung.com-appVersion-linux-fix.js", "injections/js/bug1799980-healow.com-infinite-loop-fix.js", "injections/js/bug1818818-fastclick-legacy-shim.js", @@ -158,7 +156,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [ "shims/nielsen.js", "shims/optimizely.js", "shims/play.svg", - "shims/private-browsing-web-api-fixes.js", "shims/rambler-authenticator.js", "shims/rich-relevance.js", "shims/salesforce.js", diff --git a/browser/extensions/webcompat/shims/private-browsing-web-api-fixes.js b/browser/extensions/webcompat/shims/private-browsing-web-api-fixes.js deleted file mode 100644 index b8a1e1fc5a..0000000000 --- a/browser/extensions/webcompat/shims/private-browsing-web-api-fixes.js +++ /dev/null @@ -1,19 +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 1714354 - Fix for site issues with web APIs in private browsing - * - * Some sites expect specific DOM APIs to work in specific ways, which - * is not always true, such as in private browsing mode. We work around - * related breakage by undefining those APIs entirely in private - * browsing mode for those sites. - */ - -// caches.keys() rejects in private browsing mode: -// https://bugzilla.mozilla.org/show_bug.cgi?id=1742344#c4 -// Can be removed once bug 1714354 is fixed. -delete window.wrappedJSObject.caches; |