Skip to content

AX: Clean up ref handling in AccessibilityObjectAtspi::focus()#63075

Merged
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
mgorse:eng/AX-Clean-up-ref-handling-in-AccessibilityObjectAtspi-focus
Apr 19, 2026
Merged

AX: Clean up ref handling in AccessibilityObjectAtspi::focus()#63075
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
mgorse:eng/AX-Clean-up-ref-handling-in-AccessibilityObjectAtspi-focus

Conversation

@mgorse
Copy link
Copy Markdown
Contributor

@mgorse mgorse commented Apr 19, 2026

@mgorse mgorse self-assigned this Apr 19, 2026
@mgorse mgorse requested a review from a team as a code owner April 19, 2026 15:16
@mgorse mgorse added the Accessibility For bugs related to accessibility. label Apr 19, 2026
Comment on lines +152 to +154
coreObject.get().setFocused(true);
coreObject.get().updateBackingStore();
return coreObject.get().isFocused();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
coreObject.get().setFocused(true);
coreObject.get().updateBackingStore();
return coreObject.get().isFocused();
coreObject->setFocused(true);
coreObject->updateBackingStore();
return coreObject->isFocused();

@mgorse mgorse force-pushed the eng/AX-Clean-up-ref-handling-in-AccessibilityObjectAtspi-focus branch from 5f20c24 to e35e56f Compare April 19, 2026 16:38
@mgorse mgorse added the merge-queue Applied to send a pull request to merge-queue label Apr 19, 2026
https://bugs.webkit.org/show_bug.cgi?id=312725

Reviewed by Claudio Saavedra.

There is already a check that m_coreObject is not nullptr, so this can
be a Ref.

* Source/WebCore/accessibility/atspi/AccessibilityObjectComponentAtspi.cpp:
(WebCore::AccessibilityObjectAtspi::focus const):

Canonical link: https://commits.webkit.org/311544@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/AX-Clean-up-ref-handling-in-AccessibilityObjectAtspi-focus branch from e35e56f to fc2dea6 Compare April 19, 2026 17:32
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 311544@main (fc2dea6): https://commits.webkit.org/311544@main

Reviewed commits have been landed. Closing PR #63075 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit fc2dea6 into WebKit:main Apr 19, 2026
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 19, 2026
@aperezdc aperezdc added the GLib Suggested Backport - 2.52 Suggest this merge request be backported to the webkitglib/2.52 stable branch label Apr 20, 2026
@aperezdc
Copy link
Copy Markdown
Contributor

Backported into webkitglib/2.52 as commit 20a1eb7

@aperezdc aperezdc removed the GLib Suggested Backport - 2.52 Suggest this merge request be backported to the webkitglib/2.52 stable branch label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accessibility For bugs related to accessibility.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants