summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-10-26 08:05:04 +0000
committerMoonchild <moonchild@palemoon.org>2022-10-26 08:05:04 +0000
commit1139e11f3a793f3f7fb3905bf0879b8af252773f (patch)
tree6f29f281b0930f6b3b574b40181ed9eb92f03a4b /dom
parentb19541f1d47aaead74d0a7dafd8bc7502fbeded4 (diff)
downloaduxp-1139e11f3a793f3f7fb3905bf0879b8af252773f.tar.gz
[No issue] Hold some strong references on nsRefreshDriver
Diffstat (limited to 'dom')
-rw-r--r--dom/base/nsDOMWindowUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp
index 69f1787b9f..18204efdc1 100644
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -2409,7 +2409,7 @@ nsDOMWindowUtils::AdvanceTimeAndRefresh(int64_t aMilliseconds)
nsPresContext* presContext = GetPresContext();
if (presContext) {
- nsRefreshDriver* driver = presContext->RefreshDriver();
+ RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver();
driver->AdvanceTimeAndRefresh(aMilliseconds);
RefPtr<LayerTransactionChild> transaction = GetLayerTransaction();