Bug 212238

Summary: Fix some thread safety issues with ScrollController timers
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, ews-watchlist, fred.wang, jamesr, luiz, simon.fraser, tonikitoo, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch wenson_hsieh: review+

Simon Fraser (smfr)
Reported 2020-05-21 16:10:55 PDT
Fix some thread safety issues with ScrollController timers
Attachments
Patch (31.32 KB, patch)
2020-05-21 16:17 PDT, Simon Fraser (smfr)
no flags
Patch (30.85 KB, patch)
2020-05-21 16:41 PDT, Simon Fraser (smfr)
no flags
Patch (31.05 KB, patch)
2020-05-21 16:48 PDT, Simon Fraser (smfr)
no flags
Patch (31.41 KB, patch)
2020-05-21 16:56 PDT, Simon Fraser (smfr)
wenson_hsieh: review+
Simon Fraser (smfr)
Comment 1 2020-05-21 16:17:08 PDT
Wenson Hsieh
Comment 2 2020-05-21 16:27:40 PDT
Comment on attachment 399995 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399995&action=review > Source/WebCore/ChangeLog:14 > + timers would grap the main thread runloop. Fix by creating the timers on demand. “grap” > Source/WebCore/page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.h:56 > + void wasBeRemovedFromTree() final; “wasBe" > Source/WebCore/platform/Logging.cpp:93 > + LogScrolling.state = WTFLogChannelState::On; I don’t think you meant to add this.
Simon Fraser (smfr)
Comment 3 2020-05-21 16:41:11 PDT
Simon Fraser (smfr)
Comment 4 2020-05-21 16:48:42 PDT
Simon Fraser (smfr)
Comment 5 2020-05-21 16:56:25 PDT
Wenson Hsieh
Comment 6 2020-05-21 18:03:26 PDT
Comment on attachment 400001 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400001&action=review > Source/WebCore/ChangeLog:49 > + * platform/Logging.cpp: > + (WebCore::initializeLogChannelsIfNecessary): Nit - you can remove this.
Simon Fraser (smfr)
Comment 7 2020-05-21 19:36:44 PDT
Radar WebKit Bug Importer
Comment 8 2020-05-21 19:37:24 PDT
Note You need to log in before you can comment on or make changes to this bug.