commit 01d500f3dd6e85ef747fe4a1806ced0126fcb8fd
parent c43bc47baa1baaece42806227e6330d13030e829
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Thu, 16 Oct 2025 16:12:14 +0000
Bug 1938533 - remove our webcompat intervention for chatgpt.com; r=webcompat-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D268786
Diffstat:
2 files changed, 0 insertions(+), 51 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -5162,24 +5162,6 @@
}
]
},
- "1938533": {
- "label": "chatgpt.com",
- "bugs": {
- "1938533": {
- "issue": "broken-interactive-elements",
- "matches": ["https://chatgpt.com/*"]
- }
- },
- "interventions": [
- {
- "platforms": ["all"],
- "only_channels": ["nightly"],
- "content_scripts": {
- "js": ["bug1938533-chatgpt.com-fix-voice-mode.js"]
- }
- }
- ]
- },
"1973019": {
"label": "mitsukoshi.mistore.jp",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/js/bug1938533-chatgpt.com-fix-voice-mode.js b/browser/extensions/webcompat/injections/js/bug1938533-chatgpt.com-fix-voice-mode.js
@@ -1,33 +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";
-
-/**
- * Bugs 1938533 - ChatGPT voice mode does not always work.
- *
- * ChatGPT voice seems to be relying on peer reflexive candidates. It
- * isn't giving Firefox any STUN/TURN servers in the RTCPeerConnection
- * config which is a bit unusual. The following works around the issue.
- */
-
-/* globals exportFunction */
-
-console.info(
- "RTCPeerConnection is being shimmed for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1938533 for details."
-);
-
-const win = window.wrappedJSObject;
-const origRTCPeerConnection = win.RTCPeerConnection;
-win.RTCPeerConnection = exportFunction(function (cfg = {}) {
- const extra = [{ urls: "stun:stun.l.google.com:19302" }];
- const merged = { ...cfg, iceServers: [...(cfg.iceServers || []), ...extra] };
- const pc = new origRTCPeerConnection(merged);
- pc.addEventListener("icecandidateerror", e => console.warn("ICE error", e));
- pc.addEventListener("iceconnectionstatechange", () =>
- console.log("iceConnectionState", pc.iceConnectionState)
- );
- return pc;
-}, window);
-win.RTCPeerConnection.prototype = origRTCPeerConnection.prototype;