mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 853003 - Clear the scrolling interval when cleaning up in browser_dbg_stack-03.js, r=me
This commit is contained in:
parent
4b94ea36d5
commit
f25a9ec760
@ -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