summaryrefslogtreecommitdiffstats
path: root/dom/base
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-18 15:21:00 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-18 15:21:00 +0200
commitb16ad4c6724aed73063852f082d8847a88358b9f (patch)
treed62c63d6cbacda651b403a1bf612e08a9336745e /dom/base
parent718874cf11a06fb2a1d1b51952f24b23c24600ff (diff)
downloadUXP-b16ad4c6724aed73063852f082d8847a88358b9f.tar
UXP-b16ad4c6724aed73063852f082d8847a88358b9f.tar.gz
UXP-b16ad4c6724aed73063852f082d8847a88358b9f.tar.lz
UXP-b16ad4c6724aed73063852f082d8847a88358b9f.tar.xz
UXP-b16ad4c6724aed73063852f082d8847a88358b9f.zip
Bug 1337814 - Remove rIC callback from pending callbacks before running it
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/nsGlobalWindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index b8cb1facb..3d5c44a78 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -763,9 +763,8 @@ nsGlobalWindow::RunIdleRequest(IdleRequest* aRequest,
{
AssertIsOnMainThread();
RefPtr<IdleRequest> request(aRequest);
- nsresult result = request->IdleRun(AsInner(), aDeadline, aDidTimeout);
RemoveIdleCallback(request);
- return result;
+ return request->IdleRun(AsInner(), aDeadline, aDidTimeout);
}
nsresult