зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1603182: Get rid of gFront from window. r=julienw
Depends on D69488 Differential Revision: https://phabricator.services.mozilla.com/D69898 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
818bca8761
Коммит
5b77474b4b
|
@ -142,9 +142,6 @@ PerformancePanel.prototype = {
|
|||
await PerformanceController.startRecording();
|
||||
}
|
||||
}
|
||||
|
||||
// Keep references on window for front for tests.
|
||||
this.panelWin.gFront = performanceFront;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -23,10 +23,5 @@ add_task(async function() {
|
|||
ok(toolbox, "Should have a toolbox available.");
|
||||
ok(panel, "Should have a panel available.");
|
||||
|
||||
ok(
|
||||
panel.panelWin.gFront,
|
||||
"Should have a front reference on the panel window."
|
||||
);
|
||||
|
||||
await teardownToolboxAndRemoveTab(panel);
|
||||
});
|
||||
|
|
|
@ -50,16 +50,11 @@ add_task(async function() {
|
|||
});
|
||||
|
||||
const { panel } = await initPerformanceInTab({ tab: target.localTab });
|
||||
const {
|
||||
gFront,
|
||||
EVENTS,
|
||||
$,
|
||||
PerformanceController,
|
||||
PerformanceView,
|
||||
} = panel.panelWin;
|
||||
const { EVENTS, $, PerformanceController, PerformanceView } = panel.panelWin;
|
||||
|
||||
// Set a fast profiler-status update interval.
|
||||
await gFront.setProfilerStatusInterval(10);
|
||||
const performanceFront = await panel.target.getFront("performance");
|
||||
await performanceFront.setProfilerStatusInterval(10);
|
||||
|
||||
const DETAILS_CONTAINER = $("#details-pane-container");
|
||||
const NORMAL_BUFFER_STATUS_MESSAGE = $(
|
||||
|
|
|
@ -44,16 +44,11 @@ add_task(async function() {
|
|||
win: window,
|
||||
});
|
||||
|
||||
const {
|
||||
gFront,
|
||||
EVENTS,
|
||||
$,
|
||||
PerformanceController,
|
||||
PerformanceView,
|
||||
} = panel.panelWin;
|
||||
const { EVENTS, $, PerformanceController, PerformanceView } = panel.panelWin;
|
||||
|
||||
// Set a fast profiler-status update interval
|
||||
await gFront.setProfilerStatusInterval(10);
|
||||
const performanceFront = await panel.target.getFront("performance");
|
||||
await performanceFront.setProfilerStatusInterval(10);
|
||||
|
||||
const DETAILS_CONTAINER = $("#details-pane-container");
|
||||
const NORMAL_BUFFER_STATUS_MESSAGE = $(
|
||||
|
|
|
@ -18,10 +18,11 @@ add_task(async function() {
|
|||
win: window,
|
||||
});
|
||||
|
||||
const { gFront, $, PerformanceController } = panel.panelWin;
|
||||
const { $, PerformanceController } = panel.panelWin;
|
||||
|
||||
// Set a fast profiler-status update interval
|
||||
await gFront.setProfilerStatusInterval(10);
|
||||
const performanceFront = await panel.target.getFront("performance");
|
||||
await performanceFront.setProfilerStatusInterval(10);
|
||||
|
||||
let enabled = false;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче