зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1758108 - Stop using ChromeUtils.import(..., null) for importing modules in browser_memory_distribution_telemetry.js. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D140321
This commit is contained in:
Родитель
8824cac727
Коммит
83eeffce12
|
@ -541,7 +541,6 @@ module.exports = {
|
|||
{
|
||||
// TODO: Bug 1609271 Fix all violations for ChromeUtils.import(..., null)
|
||||
files: [
|
||||
"dom/ipc/tests/browser_memory_distribution_telemetry.js",
|
||||
"dom/push/test/xpcshell/head.js",
|
||||
"dom/push/test/xpcshell/test_broadcast_success.js",
|
||||
"dom/push/test/xpcshell/test_crypto.js",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
var session = ChromeUtils.import(
|
||||
"resource://gre/modules/TelemetrySession.jsm",
|
||||
null
|
||||
const { TelemetrySession } = ChromeUtils.import(
|
||||
"resource://gre/modules/TelemetrySession.jsm"
|
||||
);
|
||||
|
||||
const DUMMY_PAGE_DATA_URI = `data:text/html,
|
||||
|
@ -57,7 +56,7 @@ add_task(async function test_memory_distribution() {
|
|||
Services.obs.addObserver(obs, "gather-memory-telemetry-finished");
|
||||
});
|
||||
|
||||
session.TelemetrySession.getPayload();
|
||||
TelemetrySession.getPayload();
|
||||
|
||||
await finishedGathering;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче