commit c7a9790a3566a374803c95b1586b9dd52cb104ca
parent 6cee990e76ea813369281f8f1d895fc180a3bb37
Author: Nicolas Chevobbe <nchevobbe@mozilla.com>
Date: Thu, 13 Nov 2025 14:40:59 +0000
Bug 1990474 - [devtools] Remove css-changes legacy listener. r=devtools-reviewers,ochameau.
There's no user of this at this point.
Differential Revision: https://phabricator.services.mozilla.com/D265788
Diffstat:
3 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/devtools/shared/commands/resource/legacy-listeners/css-changes.js b/devtools/shared/commands/resource/legacy-listeners/css-changes.js
@@ -1,24 +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";
-
-const ResourceCommand = require("resource://devtools/shared/commands/resource/resource-command.js");
-
-module.exports = async function ({ targetFront, onAvailableArray }) {
- if (!targetFront.hasActor("changes")) {
- return;
- }
-
- const changesFront = await targetFront.getFront("changes");
-
- // Get all changes collected up to this point by the ChangesActor on the server,
- // then fire each change as "add-change".
- const changes = await changesFront.allChanges();
- await onAvailableArray([[ResourceCommand.TYPES.CSS_CHANGE, changes]]);
-
- changesFront.on("add-change", change =>
- onAvailableArray([[ResourceCommand.TYPES.CSS_CHANGE, [change]]])
- );
-};
diff --git a/devtools/shared/commands/resource/legacy-listeners/moz.build b/devtools/shared/commands/resource/legacy-listeners/moz.build
@@ -4,7 +4,6 @@
DevToolsModules(
"console-messages.js",
- "css-changes.js",
"error-messages.js",
"platform-messages.js",
"reflow.js",
diff --git a/devtools/shared/commands/resource/resource-command.js b/devtools/shared/commands/resource/resource-command.js
@@ -1352,11 +1352,6 @@ loader.lazyRequireGetter(
);
loader.lazyRequireGetter(
LegacyListeners,
- ResourceCommand.TYPES.CSS_CHANGE,
- "resource://devtools/shared/commands/resource/legacy-listeners/css-changes.js"
-);
-loader.lazyRequireGetter(
- LegacyListeners,
ResourceCommand.TYPES.CSS_MESSAGE,
"resource://devtools/shared/commands/resource/legacy-listeners/css-messages.js"
);