Changeset 208829 in webkit
- Timestamp:
- Nov 16, 2016, 4:59:04 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r208828 r208829 1 2016-11-16 Chris Dumez <cdumez@apple.com> 2 3 ScriptExecutionContext::processMessagePortMessagesSoon() should only post task when necessary 4 https://bugs.webkit.org/show_bug.cgi?id=164812 5 <rdar://problem/29148465> 6 7 Reviewed by Geoffrey Garen. 8 9 ScriptExecutionContext::processMessagePortMessagesSoon() should only post task when necessary, 10 meaning when there is not already one pending. 11 12 * dom/ScriptExecutionContext.cpp: 13 (WebCore::ScriptExecutionContext::processMessagePortMessagesSoon): 14 (WebCore::ScriptExecutionContext::dispatchMessagePortEvents): 15 * dom/ScriptExecutionContext.h: 16 1 17 2016-11-16 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebCore/dom/ScriptExecutionContext.cpp
r208672 r208829 138 138 void ScriptExecutionContext::processMessagePortMessagesSoon() 139 139 { 140 if (m_willProcessMessagePortMessagesSoon) 141 return; 142 143 m_willProcessMessagePortMessagesSoon = true; 140 144 postTask([] (ScriptExecutionContext& context) { 141 145 context.dispatchMessagePortEvents(); … … 148 152 149 153 Ref<ScriptExecutionContext> protectedThis(*this); 154 ASSERT(m_willProcessMessagePortMessagesSoon); 155 m_willProcessMessagePortMessagesSoon = false; 150 156 151 157 // Make a frozen copy of the ports so we can iterate while new ones might be added or destroyed. -
trunk/Source/WebCore/dom/ScriptExecutionContext.h
r208672 r208829 260 260 261 261 bool m_activeDOMObjectAdditionForbidden; 262 bool m_willProcessMessagePortMessagesSoon { false }; 262 263 int m_timerNestingLevel; 263 264
Note:
See TracChangeset
for help on using the changeset viewer.