From 6709388785bae39840313faa53c48b0ae2dae79c Mon Sep 17 00:00:00 2001 From: Yaron Tausky Date: Thu, 13 Jan 2022 19:28:51 +0000 Subject: 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. --- dom/base/FileReader.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3