Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp

Issue 2658583006: scheduler: Make DOM window event tasks unthrottled (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp b/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
index 49bc5f8df11da824905632fc141f02ba439e3a8a..8af82ad61eb535584eeea40ac434d8ace225eaa6 100644
--- a/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
+++ b/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
@@ -26,6 +26,7 @@
#include "core/events/DOMWindowEventQueue.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/SuspendableTimer.h"
@@ -42,7 +43,11 @@ class DOMWindowEventQueueTimer final
public:
DOMWindowEventQueueTimer(DOMWindowEventQueue* eventQueue,
ExecutionContext* context)
- : SuspendableTimer(context), m_eventQueue(eventQueue) {}
+ // This queue is unthrottled because throttling IndexedDB events may break
+ // scenarios where several tabs, some of which are backgrounded, access
+ // the same database concurrently.
+ : SuspendableTimer(context, TaskType::Unthrottled),
+ m_eventQueue(eventQueue) {}
// Eager finalization is needed to promptly stop this timer object.
// (see DOMTimer comment for more.)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698