| Summary: | AX: -[WebAccessibilityObjectWrapperMac attachmentView] should only be called when needed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> | ||||||
| Component: | Accessibility | Assignee: | Tyler Wilcock <tyler_w> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Tyler Wilcock
2023-03-10 19:40:49 PST
Created attachment 465390 [details]
Patch
Comment on attachment 465390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=465390&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3830 > + } I think we can get rid of the isAttschment variable and just use whether attachmentView is nil AddObject: attachmentView ?: wrapper Created attachment 465391 [details]
Patch
(In reply to chris fleizach from comment #3) > Comment on attachment 465390 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=465390&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:3830 > > + } > > I think we can get rid of the isAttschment variable and just use whether > attachmentView is nil > > AddObject: attachmentView ?: wrapper Good point, thanks! Fixed in latest patch. commit-queue failed to commit attachment 465391 [details] to WebKit repository. To retry, please set cq+ flag again.
(In reply to Tyler Wilcock from comment #4) > Created attachment 465391 [details] > Patch Would it make sense to get rid of isAttachment() and just have a attachmentView() that returns nil when it is not an attachment? (In reply to Andres Gonzalez from comment #7) > (In reply to Tyler Wilcock from comment #4) > > Created attachment 465391 [details] > > Patch > > Would it make sense to get rid of isAttachment() and just have a > attachmentView() that returns nil when it is not an attachment? Yes, that's a good idea! Will put on my to-do list for a future patch. Committed 261641@main (f238a7ef7870): <https://commits.webkit.org/261641@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465391 [details]. |