diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:21:00 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:21:00 +0200 |
commit | 79d30a5168065dd2ef31277ae3eb4e2b00986dd5 (patch) | |
tree | d62c63d6cbacda651b403a1bf612e08a9336745e /dom | |
parent | f9407d26edbaf56780357e46623b1afe366f91f7 (diff) | |
download | uxp-79d30a5168065dd2ef31277ae3eb4e2b00986dd5.tar.gz |
Bug 1337814 - Remove rIC callback from pending callbacks before running it
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/nsGlobalWindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index b8cb1facbd..3d5c44a789 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 |