mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 853003 - Clear the scrolling interval when cleaning up in browser_dbg_stack-03.js, r=me
This commit is contained in:
parent
a35d05564f
commit
e8446fcab1
@ -8,7 +8,7 @@
|
||||
const TAB_URL = EXAMPLE_URL + "doc_recursion-stack.html";
|
||||
|
||||
let gTab, gDebuggee, gPanel, gDebugger;
|
||||
let gFrames;
|
||||
let gFrames, gFramesScrollingInterval;
|
||||
|
||||
function test() {
|
||||
initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => {
|
||||
@ -40,18 +40,21 @@ function performTest() {
|
||||
"Should have reached the recurse limit.");
|
||||
|
||||
gDebugger.gThreadClient.resume(() => {
|
||||
window.clearInterval(scrollingIntervalId);
|
||||
window.clearInterval(gFramesScrollingInterval);
|
||||
closeDebuggerAndFinish(gPanel);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
let scrollingIntervalId = window.setInterval(() => {
|
||||
gFramesScrollingInterval = window.setInterval(() => {
|
||||
gFrames.widget._list.scrollByIndex(-1);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
registerCleanupFunction(function() {
|
||||
window.clearInterval(gFramesScrollingInterval);
|
||||
gFramesScrollingInterval = null;
|
||||
|
||||
gTab = null;
|
||||
gDebuggee = null;
|
||||
gPanel = null;
|
||||
|
Loading…
Reference in New Issue
Block a user