Bug 1384037 - Label ThrottleTimeoutsCallback. r=billm
authorBevis Tseng <btseng@mozilla.com>
Tue, 25 Jul 2017 18:04:58 +0800
changeset 419732 27f45d11434f40113c0498aad0196818f4d1a939
parent 419731 3e04a16b0d583a77a392c8f20fff1683ac36b649
child 419733 4e292ff9303441a91d58a9612d4090de4a71d113
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1384037
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384037 - Label ThrottleTimeoutsCallback. r=billm
dom/base/TimeoutManager.cpp
--- a/dom/base/TimeoutManager.cpp
+++ b/dom/base/TimeoutManager.cpp
@@ -1286,16 +1286,18 @@ TimeoutManager::MaybeStartThrottleTimeou
     do_CreateInstance("@mozilla.org/timer;1");
   if (!mThrottleTimeoutsTimer) {
     return;
   }
 
   nsCOMPtr<nsITimerCallback> callback =
     new ThrottleTimeoutsCallback(&mWindow);
 
+  mThrottleTimeoutsTimer->SetTarget(EventTarget());
+
   mThrottleTimeoutsTimer->InitWithCallback(
     callback, gTimeoutThrottlingDelay, nsITimer::TYPE_ONE_SHOT);
 }
 
 void
 TimeoutManager::BeginSyncOperation()
 {
   // If we're beginning a sync operation, the currently running