Bug 206384

Summary: Use the same AccessibilityObjectWrapper for associated AXObject and AXIsolatedObject.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: New BugsAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, annulen, apinheiro, cfleizach, commit-queue, dmazzoni, ews-watchlist, gyuyoung.kim, jcraig, jdiggs, ryuan.choi, samuel_white, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Uploading diff manually.
none
Patch
none
Patch
none
Patch none

Description Andres Gonzalez 2020-01-16 16:22:20 PST
Use the same AccessibilityObjectWrapper for associated AXObject and AXIsolatedObject.
Comment 1 Andres Gonzalez 2020-01-16 17:01:46 PST
Created attachment 387992 [details]
Patch
Comment 2 Andres Gonzalez 2020-01-16 17:48:04 PST
Created attachment 387997 [details]
Uploading diff manually.
Comment 3 Andres Gonzalez 2020-01-23 09:41:22 PST
Created attachment 388555 [details]
Patch
Comment 4 chris fleizach 2020-01-23 09:50:32 PST
Comment on attachment 388555 [details]
Patch

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

> Source/WebCore/accessibility/AXObjectCache.h:176
> +    void cacheAndInitializeWrapper(AccessibilityObject*, RenderObject* = nullptr, Node* = nullptr, Widget* = nullptr);

don't know if this feasible, but would it be possible to templatize the "other" object (RenderObject/Node/Widget) so that there was only one parameter?

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm:354
> +    if (!isMainThread())

should we add something like

if (!clientSupportsIsolatedTree())
   ASSERT_NOT_REACHED()
Comment 5 Andres Gonzalez 2020-01-23 11:55:56 PST
Created attachment 388571 [details]
Patch
Comment 6 Andres Gonzalez 2020-01-23 16:58:35 PST
Created attachment 388620 [details]
Patch
Comment 7 WebKit Commit Bot 2020-01-23 17:48:36 PST
Comment on attachment 388620 [details]
Patch

Clearing flags on attachment: 388620

Committed r255044: <https://trac.webkit.org/changeset/255044>
Comment 8 WebKit Commit Bot 2020-01-23 17:48:38 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2020-01-23 17:49:14 PST
<rdar://problem/58855851>