Unverified Commit da01c2d7 authored by Dennis Schubert's avatar Dennis Schubert
Browse files

Issue #7484 - Import v12.0.0 of webcompat system addon.

Closes #7484
parent 87fe5495
Loading
Loading
Loading
Loading
+37 −20
Original line number Diff line number Diff line
@@ -263,20 +263,6 @@ const AVAILABLE_INJECTIONS = [
      ],
    },
  },
  {
    id: "bug1577270",
    platform: "android",
    domain: "binance.com",
    bug: "1577270",
    contentScripts: {
      matches: ["*://*.binance.com/*"],
      css: [
        {
          file: "injections/css/bug1577270-binance.com-calc-height-fix.css",
        },
      ],
    },
  },
  {
    id: "bug1577297",
    platform: "android",
@@ -426,15 +412,46 @@ const AVAILABLE_INJECTIONS = [
    },
  },
  {
    id: "bug1633796",
    platform: "android",
    domain: "www.laposte.fr",
    bug: "1633796",
    id: "bug1644830",
    platform: "desktop",
    domain: "usps.com",
    bug: "1644830",
    contentScripts: {
      matches: ["https://*.usps.com/*"],
      css: [
        {
          file:
            "injections/css/bug1644830-missingmail.usps.com-checkboxes-not-visible.css",
        },
      ],
    },
  },
  {
    id: "bug1645064",
    platform: "desktop",
    domain: "s-kanava.fi",
    bug: "1645064",
    contentScripts: {
      matches: ["https://www.laposte.fr/*"],
      matches: ["https://www.s-kanava.fi/*"],
      css: [
        {
          file: "injections/css/bug1633796-www-la-poste-fr-placeholder-fix.css",
          file: "injections/css/bug1645064-s-kanava.fi-invisible-charts.css",
        },
      ],
    },
  },
  {
    id: "bug1641998",
    platform: "desktop",
    domain: "twitter.com",
    bug: "1641998",
    contentScripts: {
      matches: ["https://twitter.com/i/videos/tweet/*"],
      allFrames: true,
      js: [
        {
          file:
            "injections/js/bug1641998-embedded-twitter-videos-etp-indexeddb.js",
        },
      ],
    },
+27 −22
Original line number Diff line number Diff line
@@ -456,28 +456,6 @@ const AVAILABLE_UA_OVERRIDES = [
      },
    },
  },
  {
    /*
     * Bug 1610370 - UA override for answers.yahoo.com on Firefox for Android
     * WebCompat issue #5460 - https://webcompat.com/issues/5460
     *
     * answers.yahoo.com is not showing lazy loaded content based on UA detection
     * When spoofing as Chrome it's possible to load the content
     */
    id: "bug1610370",
    platform: "android",
    domain: "answers.yahoo.com",
    bug: "1610370",
    config: {
      matches: ["https://answers.yahoo.com/*"],
      uaTransformer: originalUA => {
        return (
          UAHelpers.getPrefix(originalUA) +
          " AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Mobile Safari/537.36"
        );
      },
    },
  },
  {
    /*
     * Bug 1595215 - UA overrides for Uniqlo sites
@@ -615,6 +593,33 @@ const AVAILABLE_UA_OVERRIDES = [
      },
    },
  },
  {
    /*
     * Bug 1563839 - rolb.santanderbank.com - Build UA override
     * Bug 1646791 - bancosantander.es - Re-add UA override.
     * WebCompat issue #33462 - https://webcompat.com/issues/33462
     * SuMo request - https://support.mozilla.org/es/questions/1291085
     *
     * santanderbank expects UA to have 'like Gecko', otherwise it runs
     * xmlDoc.onload whose support has been dropped. It results in missing labels in forms
     * and some other issues.  Adding 'like Gecko' fixes those issues.
     */
    id: "bug1563839",
    platform: "all",
    domain: "santanderbank.com",
    bug: "1563839",
    config: {
      matches: [
        "*://*.bancosantander.es*",
        "*://*.santander.co.uk/*",
        "*://bob.santanderbank.com/*",
        "*://rolb.santanderbank.com/*",
      ],
      uaTransformer: originalUA => {
        return originalUA.replace("Gecko", "like Gecko");
      },
    },
  },
];

const UAHelpers = {
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ this.pictureInPictureChild = class extends ExtensionAPI {
          // The Picture-in-Picture toggle is only implemented for Desktop, so make
          // this return nothing for non-Desktop builds.
          if (AppConstants.platform == "android") {
            return {};
            return Cu.cloneInto({}, context.cloneScope);
          }

          return Cu.cloneInto(TOGGLE_POLICIES, context.cloneScope);
+0 −12
Original line number Diff line number Diff line
/**
 * binance.com - can't see the full site
 * Bug #1577270 - https://bugzilla.mozilla.org/show_bug.cgi?id=1577270
 * WebCompat issue #17810 - https://webcompat.com/issues/17810
 *
 * The site does not have a doctype and is rendered in quirks mode. The calc() percentage
 * height is applied on the .main-page .viewWrap element, but its parent does not have
 * a specified height property. Adding a height of 100% to the parent fixes the issue.
 */
#tradeDiv {
  height: 100%;
}
+0 −21
Original line number Diff line number Diff line
/**
 * www.laposte.fr - Account credentials overlap placeholder text
 * Bug #1633796 - https://bugzilla.mozilla.org/show_bug.cgi?id=1633796
 * WebCompat issue #52274 - https://webcompat.com/issues/52274
 *
 * The login form for www.laposte.fr uses a positioned label as
 * placeholder text, and relies on focus to move it. However, Firefox
 * does not currently support unprefixed :read-only, so the entire
 * rule is discarded. Until https://bugzilla.mozilla.org/show_bug.cgi?id=312971
 * ships, we can work around this by rewriting the rule.
 */

.flottingLabel .group input:focus ~ label,
.flottingLabel .group input:valid ~ label,
.flottingLabel .group input:-moz-read-only ~ label,
.flottingLabel .group input.flatpickr-input ~ label,
.flottingLabel .group input:disabled ~ label {
  color: #606060;
  font-size: 0.625em;
  top: 0;
}
Loading