Bug 243210 - AX ITM: Fix for accessibility/nested-textareas-value-changed-notifications.html in isolated tree mode.
Summary: AX ITM: Fix for accessibility/nested-textareas-value-changed-notifications.ht...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-26 05:54 PDT by Andres Gonzalez
Modified: 2022-07-27 05:15 PDT (History)
11 users (show)

See Also:


Attachments
Patch (8.68 KB, patch)
2022-07-26 06:10 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gonzalez 2022-07-26 05:54:14 PDT
Currently a timeout.
Comment 1 Radar WebKit Bug Importer 2022-07-26 05:54:23 PDT
<rdar://problem/97601722>
Comment 2 Andres Gonzalez 2022-07-26 06:10:19 PDT
Created attachment 461221 [details]
Patch
Comment 3 chris fleizach 2022-07-26 07:12:31 PDT
Comment on attachment 461221 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=461221&action=review

> Source/WebCore/accessibility/AccessibilityObject.cpp:2373
>      if (!renderer() || !is<Element>(node()))

We don’t need this renderer check here anymore
Comment 4 Andres Gonzalez 2022-07-26 07:48:44 PDT
(In reply to chris fleizach from comment #3)
> Comment on attachment 461221 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=461221&action=review
> 
> > Source/WebCore/accessibility/AccessibilityObject.cpp:2373
> >      if (!renderer() || !is<Element>(node()))
> 
> We don’t need this renderer check here anymore

Down below we do:

    auto& editor = renderer()->frame().editor();

So early return if !renderer() is appropriate.
Comment 5 Tyler Wilcock 2022-07-26 08:57:41 PDT
(In reply to Andres Gonzalez from comment #4)
> (In reply to chris fleizach from comment #3)
> > Comment on attachment 461221 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=461221&action=review
> > 
> > > Source/WebCore/accessibility/AccessibilityObject.cpp:2373
> > >      if (!renderer() || !is<Element>(node()))
> > 
> > We don’t need this renderer check here anymore
> 
> Down below we do:
> 
>     auto& editor = renderer()->frame().editor();
> 
> So early return if !renderer() is appropriate.

This is the RenderObject implementation for frame:

inline Frame& RenderObject::frame() const
{
    return *document().frame();
}

Is it possible to use the node to do something similar, making this function not require a renderer at all? This could improve our display:contents support. Up to you if you would prefer not to address that now though.
Comment 6 EWS 2022-07-27 05:15:20 PDT
Committed 252863@main (f410828332d2): <https://commits.webkit.org/252863@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 461221 [details].