Files
sousa-gecko/devtools/client/performance-new/test/xpcshell/head.js
T
Julien Wajsberg 3477c3fc9c Bug 1957016 - Extract the preferences and presets code into a separate files r=canaltinova,profiler-reviewers
background.sys.mjs is a big file, that's included only in Firefox desktop.
This patch extracts the preferences and presets code into a separate
file.

The preferences and presets code are very interleaved, that's why
they're kept in the same file instead of splitting them further.

This new file is also located in the "shared" directory of devtools, so
that it will be shipped to Android as well.

Differential Revision: https://phabricator.services.mozilla.com/D242690
2025-04-02 08:28:00 +00:00

13 lines
420 B
JavaScript

/* 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 PrefsPresets = ChromeUtils.importESModule(
"resource://devtools/shared/performance-new/prefs-presets.sys.mjs"
);
registerCleanupFunction(() => {
PrefsPresets.revertRecordingSettings();
});