From 16a60d17f6a77d8604fec872b13146fe231ec182 Mon Sep 17 00:00:00 2001 From: Ksenia Berezina Date: Thu, 27 Jun 2024 23:43:26 +0000 Subject: [PATCH] Bug 1904908 - Update an override for directv; r=twisniewski,webcompat-reviewers Differential Revision: https://phabricator.services.mozilla.com/D215165 --- browser/extensions/webcompat/data/ua_overrides.js | 7 ++----- browser/extensions/webcompat/manifest.json | 2 +- .../main/assets/extensions/webcompat/data/ua_overrides.js | 7 ++----- .../src/main/assets/extensions/webcompat/manifest.json | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/browser/extensions/webcompat/data/ua_overrides.js b/browser/extensions/webcompat/data/ua_overrides.js index 5b7967d277e5..23d17fb1d91c 100644 --- a/browser/extensions/webcompat/data/ua_overrides.js +++ b/browser/extensions/webcompat/data/ua_overrides.js @@ -55,11 +55,8 @@ const AVAILABLE_UA_OVERRIDES = [ "*://*.directv.com.ec/*", // bug 1827706 "*://*.directv.com/*", ], - uaTransformer: originalUA => { - return ( - UAHelpers.getPrefix(originalUA) + - " AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" - ); + uaTransformer: () => { + return UAHelpers.getDeviceAppropriateChromeUA(); }, }, }, diff --git a/browser/extensions/webcompat/manifest.json b/browser/extensions/webcompat/manifest.json index 858232e8d681..2ca054c8459f 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": "129.2.0", + "version": "129.3.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org", diff --git a/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/data/ua_overrides.js b/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/data/ua_overrides.js index 5b7967d277e5..23d17fb1d91c 100644 --- a/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/data/ua_overrides.js +++ b/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/data/ua_overrides.js @@ -55,11 +55,8 @@ const AVAILABLE_UA_OVERRIDES = [ "*://*.directv.com.ec/*", // bug 1827706 "*://*.directv.com/*", ], - uaTransformer: originalUA => { - return ( - UAHelpers.getPrefix(originalUA) + - " AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" - ); + uaTransformer: () => { + return UAHelpers.getDeviceAppropriateChromeUA(); }, }, }, diff --git a/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/manifest.json b/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/manifest.json index 858232e8d681..2ca054c8459f 100644 --- a/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/manifest.json +++ b/mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Web Compatibility Interventions", "description": "Urgent post-release fixes for web compatibility.", - "version": "129.2.0", + "version": "129.3.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org",