summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaron Tausky <ytausky@mozilla.com>2022-01-13 19:28:51 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-03 01:07:03 +0200
commit3c239e5c7b2d9a23c90c44208d933eef0104054a (patch)
tree26e2de2547a8b86d1d563394a112e1ba56033b29
parent7504810ba04ee286f9c8810c5c6bba7d8df3b399 (diff)
downloaduxp-3c239e5c7b2d9a23c90c44208d933eef0104054a.tar.gz
Bug 1650214 - Cancel progress timer when shutting down FileReader
Not canceling the timer when run in a worker could lead to the timer firing after the primary worker runnable finished running, leading to an assertion failure in cycle collector code.
-rw-r--r--dom/base/FileReader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/base/FileReader.cpp b/dom/base/FileReader.cpp
index 273e192d0c..7a8cb31d6e 100644
--- a/dom/base/FileReader.cpp
+++ b/dom/base/FileReader.cpp
@@ -775,6 +775,7 @@ FileReader::Shutdown()
mAsyncStream = nullptr;
}
+ ClearProgressEventTimer();
FreeFileData();
mResultArrayBuffer = nullptr;