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
13 lines
420 B
JavaScript
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();
|
|
});
|