Attributes SelectionTextMarkerRange and Start/EndTextMarker need to run on the main thread.
Created attachment 393376 [details] Patch
Comment on attachment 393376 [details] Patch Clearing flags on attachment: 393376 Committed r258349: <https://trac.webkit.org/changeset/258349>
All reviewed patches have been landed. Closing bug.
<rdar://problem/60381174>
Comment on attachment 393376 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393376&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:2830 > + return Accessibility::retrieveAutoreleasedValueFromMainThread<id>([protectedSelf = RetainPtr<WebAccessibilityObjectWrapper>(self)] () -> RetainPtr<id> { Maybe we can write this more elegantly using the retainPtr helper function? [protectedSelf = retainPtr(self)]
(In reply to Darin Adler from comment #5) > Comment on attachment 393376 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=393376&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:2830 > > + return Accessibility::retrieveAutoreleasedValueFromMainThread<id>([protectedSelf = RetainPtr<WebAccessibilityObjectWrapper>(self)] () -> RetainPtr<id> { > > Maybe we can write this more elegantly using the retainPtr helper function? > > [protectedSelf = retainPtr(self)] Agree, I'll make a separate change with a sweep through all the instances of this construct. Thanks.