Fix for crashes in WebAccessibilityObjectWrapper after notification updates in IsolatedTree mode.
Created attachment 390378 [details] Patch
Comment on attachment 390378 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390378&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:802 > + if (self.axBackingObject) if (auto backingObject = self.axBackingObject) .... > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1956 > + return Accessibility::retrieveValueFromMainThread<RetainPtr<id>>([protectedSelf = RetainPtr<WebAccessibilityObjectWrapper>(self)] () -> RetainPtr<id> { should we have a retrieveValueFromMainThreadWithAutorelease function that handles the right casting and release for these kinds of values?
Created attachment 390397 [details] Patch
(In reply to chris fleizach from comment #2) > Comment on attachment 390378 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=390378&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:802 > > + if (self.axBackingObject) > > if (auto backingObject = self.axBackingObject) > .... Fixed. > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1956 > > + return Accessibility::retrieveValueFromMainThread<RetainPtr<id>>([protectedSelf = RetainPtr<WebAccessibilityObjectWrapper>(self)] () -> RetainPtr<id> { > > should we have a retrieveValueFromMainThreadWithAutorelease function that > handles the right casting and release for these kinds of values? Done.
Comment on attachment 390397 [details] Patch Clearing flags on attachment: 390397 Committed r256347: <https://trac.webkit.org/changeset/256347>
All reviewed patches have been landed. Closing bug.
<rdar://problem/59361573>