Bug 214692 - Update the isolated tree even when there is no client request.
Summary: Update the isolated tree even when there is no client request.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-23 10:51 PDT by Andres Gonzalez
Modified: 2020-07-23 13:01 PDT (History)
9 users (show)

See Also:


Attachments
Patch (6.76 KB, patch)
2020-07-23 11:06 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (6.42 KB, patch)
2020-07-23 12:03 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 2020-07-23 10:51:50 PDT
Update the isolated tree even when there is no client request.
Comment 1 Andres Gonzalez 2020-07-23 11:06:58 PDT
Created attachment 405060 [details]
Patch
Comment 2 chris fleizach 2020-07-23 11:24:08 PDT
Comment on attachment 405060 [details]
Patch

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

> Source/WebCore/accessibility/AXObjectCache.cpp:3196
> +    case AXLoadingFinished:

can we change this method so it doesn't duplicate the logic in the other updateIsolateTree method? instead do something like

void AXObjectCache::updateIsolatedTree(AXCoreObject& object, AXLoadingEvent notification)
{
   if (notification == AXLoadingFinished)
    updateIsoaltedTree(object, AXChildrenChanged)
}
Comment 3 Andres Gonzalez 2020-07-23 12:03:29 PDT
Created attachment 405064 [details]
Patch
Comment 4 Andres Gonzalez 2020-07-23 12:09:21 PDT
(In reply to chris fleizach from comment #2)
> Comment on attachment 405060 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=405060&action=review
> 
> > Source/WebCore/accessibility/AXObjectCache.cpp:3196
> > +    case AXLoadingFinished:
> 
> can we change this method so it doesn't duplicate the logic in the other
> updateIsolateTree method? instead do something like
> 
> void AXObjectCache::updateIsolatedTree(AXCoreObject& object, AXLoadingEvent
> notification)
> {
>    if (notification == AXLoadingFinished)
>     updateIsoaltedTree(object, AXChildrenChanged)
> }

Done as suggested. Also pondered the approach of merging the AXLoadingEvent enum into AXNotification. But don't know why it was added as a separate enum, and it would require more changes. Something perhaps for a later cleanup. Thanks.
Comment 5 EWS 2020-07-23 13:00:47 PDT
Committed r264784: <https://trac.webkit.org/changeset/264784>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 405064 [details].
Comment 6 Radar WebKit Bug Importer 2020-07-23 13:01:16 PDT
<rdar://problem/66007855>