Changeset 228466 in webkit
- Timestamp:
- Feb 14, 2018 10:07:17 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r228465 r228466 1 2018-02-14 Brent Fulgham <bfulgham@apple.com> 2 3 Confirm proper thread in UserGestureIndicator constructor 4 https://bugs.webkit.org/show_bug.cgi?id=175980 5 6 Reviewed by Daniel Bates. 7 8 Document is a main-thread object. If we enter the UserGestureIndicator constructor 9 on a non-main thread, we should ASSERT, not return silently. 10 11 * dom/UserGestureIndicator.cpp: 12 (WebCore::UserGestureIndicator::UserGestureIndicator): 13 1 14 2018-02-14 Zalan Bujtas <zalan@apple.com> 2 15 -
trunk/Source/WebCore/dom/UserGestureIndicator.cpp
r223307 r228466 48 48 49 49 UserGestureIndicator::UserGestureIndicator(std::optional<ProcessingUserGestureState> state, Document* document, UserGestureType gestureType, ProcessInteractionStyle processInteractionStyle) 50 : m_previousToken { currentToken() } 50 51 { 51 // Silently ignore UserGestureIndicators on non main threads. 52 if (!isMainThread()) 53 return; 54 55 // It is only safe to use currentToken() on the main thread. 56 m_previousToken = currentToken(); 52 ASSERT(isMainThread()); 57 53 58 54 if (state) … … 69 65 UserGestureIndicator::UserGestureIndicator(RefPtr<UserGestureToken> token) 70 66 { 67 // Silently ignore UserGestureIndicators on non main threads. 71 68 if (!isMainThread()) 72 69 return;
Note: See TracChangeset
for help on using the changeset viewer.