Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick c09328b. rdar://problem/111271905
Occasional crashes under WebWheelEventCoalescer::takeOldestEventBeingProcessed() https://bugs.webkit.org/show_bug.cgi?id=258653 rdar://111271905 Reviewed by Jer Noble. Crash data suggest that we can reach WebWheelEventCoalescer::takeOldestEventBeingProcessed() with m_eventsBeingProcessed being empty. We get here after one or more trips to the web process for wheel event handling, so it's possible there's some code path where we can get here with an empty m_eventsBeingProcessed, but I have not figured out how, so do a defensive fix of returning a std::optional<NativeWebWheelEvent>. * Source/WebKit/Shared/WebWheelEventCoalescer.cpp: (WebKit::WebWheelEventCoalescer::takeOldestEventBeingProcessed): * Source/WebKit/Shared/WebWheelEventCoalescer.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::wheelEventHandlingCompleted): Canonical link: https://commits.webkit.org/265625@main Identifier: 263823.1687@safari-7616.1.21-branch
- Loading branch information