[Webkit-unassigned] [Bug 274416] New: AX: must call WTF::switchOn on a copy of AXPropertyValueVariant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 20 13:47:21 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274416

            Bug ID: 274416
           Summary: AX: must call WTF::switchOn on a copy of
                    AXPropertyValueVariant
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dm_mazzoni at apple.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

WTF::switchOn takes an rvalue reference (&&) so if we 

In https://bugs.webkit.org/show_bug.cgi?id=273959 I changed a call to WTF::switchOn to avoid an extra copy. For some types it was resulting in moving the type away from the property map. Many isolated tree tests failed as a result.

Let's revert this to fix things, but it'd be nice to figure out a solution that's less fragile and doesn't require a copy just to access a value from the property map.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240520/eb5f9460/attachment.htm>


More information about the webkit-unassigned mailing list