Closed Bug 1784309 Opened 2 years ago Closed 2 years ago

Add an intervention for bet365

Categories

(Web Compatibility :: Interventions, enhancement)

Firefox 104
enhancement

Tracking

(firefox104 fixed, firefox105 fixed)

RESOLVED FIXED
Tracking Status
firefox104 --- fixed
firefox105 --- fixed

People

(Reporter: ksenia, Assigned: ksenia)

References

()

Details

Attachments

(2 files)

Let's add the following intervention to resolve an issue with missing content, for both mobile and desktop:

const originalMath = Math;
const originalPow = Math.pow;

Object.defineProperty(window.Math.wrappedJSObject, "pow", {
  value: exportFunction(function(base, exponent) {
    console.log('override', base, exponent)
    if (exponent === -100 && base === originalMath.PI){
      return Number('1.9275814160560185e-50')
    }
    return originalPow.call(originalMath, base, exponent);
  }, window),
});

See more information in this comment https://bugzilla.mozilla.org/show_bug.cgi?id=1784111#c4

Assignee: nobody → kberezina
Status: NEW → ASSIGNED
Blocks: 1776674
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e26b951b9a45 Add an intervention for bet365 and regional sites r=webcompat-reviewers,twisniewski
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Comment on attachment 9289664 [details]
Bug 1784309 - Beta - Add an intervention for bet365 and regional sites

Beta/Release Uplift Approval Request

  • User impact if declined: Users are unable to see parts of the content on bet365.com and its regional counterparts
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): All changes are limited to bet365 domains and have been tested in Nightly.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9289664 - Flags: approval-mozilla-beta?

Comment on attachment 9289664 [details]
Bug 1784309 - Beta - Add an intervention for bet365 and regional sites

Approved for 104.0rc1

Attachment #9289664 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: