Skip to content

Commit

Permalink
AX: Missing type in AXIsolatedObject::setProperty.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=262702
<rdar://problem/116524008>

Reviewed by Tyler Wilcock.

This causes a crash assert in debug builds. Adding the IntRect missing type to the switchOn call.

* Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp:
(WebCore::AXIsolatedObject::setProperty):

Canonical link: https://commits.webkit.org/268924@main
  • Loading branch information
AndresGonzalezApple committed Oct 5, 2023
1 parent 4905aa0 commit 0c63edf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ void AXIsolatedObject::setProperty(AXPropertyName propertyName, AXPropertyValueV
[](URL& typedValue) { return typedValue == URL(); },
[](LayoutRect& typedValue) { return typedValue == LayoutRect(); },
[](IntPoint& typedValue) { return typedValue == IntPoint(); },
[](IntRect& typedValue) { return typedValue == IntRect(); },
[](std::pair<unsigned, unsigned>& typedValue) {
// (0, 1) is the default for an index range.
return typedValue == std::pair<unsigned, unsigned>(0, 1);
Expand Down

0 comments on commit 0c63edf

Please sign in to comment.