commit 12b82f81f231f6ae75da071ed5d37f56ff3dd1ad
parent 5b8a5eeaa0cd607d115e2f45be0b0c9bf5baad13
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Thu, 16 Oct 2025 16:12:15 +0000
Bug 1976402 - remove our webcompat intervention for dieseldispatch.com; r=webcompat-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D268790
Diffstat:
3 files changed, 2 insertions(+), 64 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -5169,23 +5169,6 @@
}
]
},
- "1976402": {
- "label": "dieseldispatch.com",
- "bugs": {
- "1976402": {
- "issue": "broken-scrolling",
- "matches": ["*://dieseldispatch.com/*"]
- }
- },
- "interventions": [
- {
- "platforms": ["all"],
- "content_scripts": {
- "js": ["bug1976402-dieseldispatch.com-emulate-mousewheel-events.js"]
- }
- }
- ]
- },
"1980382": {
"label": "www.fidrec.com.sg",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/js/bug1976402-dieseldispatch.com-emulate-mousewheel-events.js b/browser/extensions/webcompat/injections/js/bug1976402-dieseldispatch.com-emulate-mousewheel-events.js
@@ -1,38 +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";
-
-/* globals exportFunction */
-
-/**
- * Bug 1911423 - dieseldispatch.com - mousewheel scrolling the page does not work.
- *
- * They listen for non-standard mousewheel events, rather than wheel,
- * which breaks their scrolling code. This emulates mousewheel events for them.
- */
-
-console.info(
- "Emulating mousewheel events for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1911423 for details."
-);
-
-(function () {
- const { prototype } = window.wrappedJSObject.WheelEvent;
- Object.defineProperty(prototype, "type", {
- configurable: true,
- get: exportFunction(() => "mousewheel", window),
- set: exportFunction(() => {}, window),
- });
-})();
-
-(function () {
- const { prototype } = window.wrappedJSObject.EventTarget;
- const { addEventListener } = prototype;
- prototype.addEventListener = exportFunction(function (type, fn, c, d) {
- if (type === "mousewheel") {
- type = "wheel";
- }
- return addEventListener.call(this, type, fn, c, d);
- }, window);
-})();
diff --git a/testing/webcompat/interventions/tests/test_1976402_dieseldispatch_com.py b/testing/webcompat/interventions/tests/test_1976402_dieseldispatch_com.py
@@ -28,13 +28,6 @@ async def can_scroll(client):
@pytest.mark.skip_platforms("android")
@pytest.mark.asyncio
-@pytest.mark.with_interventions
-async def test_enabled(client):
- assert await can_scroll(client)
-
-
-@pytest.mark.skip_platforms("android")
-@pytest.mark.asyncio
@pytest.mark.without_interventions
-async def test_disabled(client):
- assert not await can_scroll(client)
+async def test_regression(client):
+ assert await can_scroll(client)