diff options
author | Yaron Tausky <ytausky@mozilla.com> | 2022-01-13 19:28:51 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-08 15:03:24 +0200 |
commit | 6709388785bae39840313faa53c48b0ae2dae79c (patch) | |
tree | 738fb8c9b208a7e68d0c16fd0dc9312be38d79c2 /dom/base | |
parent | 2829b9387bf76818ca73e501f2801287380ae8a8 (diff) | |
download | uxp-6709388785bae39840313faa53c48b0ae2dae79c.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.
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/FileReader.cpp | 1 |
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; |