Closed Bug 1818818 Opened 2 years ago Closed 2 years ago

Add an intervention for wellcare.com

Categories

(Web Compatibility :: Interventions, enhancement)

Firefox 112
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ksenia, Unassigned)

References

()

Details

This is a variation of bug1448747, with the site using an older version of fastclick:

FastClick.notNeeded = function (a) {
  'use strict';
  var b,
  c,
  d;
  if ('undefined' == typeof window.ontouchstart) return !0;
  if (c = + (/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [
    ,
    0
  ]) [1]) {
    if (!deviceIsAndroid) return !0;
    if (b = document.querySelector('meta[name=viewport]')) {
      if ( - 1 !== b.content.indexOf('user-scalable=no')) return !0;
      if (c > 31 && document.documentElement.scrollWidth <= window.outerWidth) return !0
    }
  }
  if (deviceIsBlackBerry10 && (d = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/), d[1] >= 10 && d[2] >= 3 && (b = document.querySelector('meta[name=viewport]')))) {
    if ( - 1 !== b.content.indexOf('user-scalable=no')) return !0;
    if (document.documentElement.scrollWidth <= window.outerWidth) return !0
  }
  return 'none' === a.style.msTouchAction ? !0 : !1
},

Setting msTouchAction to none makes FastClick.notNeeded function return true:

const proto = CSS2Properties.prototype.wrappedJSObject;
Object.defineProperty(proto, "msTouchAction", {
  get: exportFunction(function() {
    return "none";
  }, window),

  set: exportFunction(function() {}, window),
});

There is same older version of fastclick being used on marksandspencer.com check out page

chatiw.com uses it as well

This was shipped in bug1805409.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.