Bug 177520 - Deferred image size change makes image-load-on-delay.html flaky.
Summary: Deferred image size change makes image-load-on-delay.html flaky.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-26 19:20 PDT by zalan
Modified: 2017-09-27 18:38 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.43 KB, patch)
2017-09-27 16:05 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (6.43 KB, patch)
2017-09-27 16:25 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2017-09-26 19:20:48 PDT
Related to bug 177446
Comment 1 Radar WebKit Bug Importer 2017-09-26 19:21:28 PDT
<rdar://problem/34674299>
Comment 2 zalan 2017-09-27 16:05:40 PDT
Created attachment 322036 [details]
Patch
Comment 3 chris fleizach 2017-09-27 16:16:11 PDT
Comment on attachment 322036 [details]
Patch

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

> Source/WebCore/accessibility/AXObjectCache.cpp:2803
> +        m_deferredRecomputeIsIgnoredList.add(element);

is this a set or array? do we need to worry about duplicates being added?

> Source/WebCore/accessibility/AXObjectCache.cpp:2805
> +    }

we could save some code if we did

if (rendererNeedsDeferredUpdate(*renderer)) {
       m_deferredRecomputeIsIgnoredList.add(element);
else
   recomputeIsIgnored(renderer);

> Source/WebCore/rendering/RenderImage.cpp:269
> +    if (AXObjectCache* cache = document().existingAXObjectCache())

are you sure you want to lose the accessibilityEnabled() check?
Comment 4 zalan 2017-09-27 16:23:21 PDT
(In reply to chris fleizach from comment #3)
> Comment on attachment 322036 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=322036&action=review
> 
> > Source/WebCore/accessibility/AXObjectCache.cpp:2803
> > +        m_deferredRecomputeIsIgnoredList.add(element);
> 
> is this a set or array? do we need to worry about duplicates being added?
It's a set. Dupes are fine.

> 
> > Source/WebCore/accessibility/AXObjectCache.cpp:2805
> > +    }
> 
> we could save some code if we did
> 
> if (rendererNeedsDeferredUpdate(*renderer)) {
>        m_deferredRecomputeIsIgnoredList.add(element);
> else
>    recomputeIsIgnored(renderer);
>
I don't mind doing that but in WebCore we prefer early returns (unless it has changed).


> > Source/WebCore/rendering/RenderImage.cpp:269
> > +    if (AXObjectCache* cache = document().existingAXObjectCache())
> 
> are you sure you want to lose the accessibilityEnabled() check?
Not sure how much that helps and if you look at all the call sites, they don't really check for that (not even the hot ones).
Comment 5 zalan 2017-09-27 16:25:47 PDT
Created attachment 322039 [details]
Patch
Comment 6 WebKit Commit Bot 2017-09-27 18:38:21 PDT
Comment on attachment 322039 [details]
Patch

Clearing flags on attachment: 322039

Committed r222594: <http://trac.webkit.org/changeset/222594>
Comment 7 WebKit Commit Bot 2017-09-27 18:38:23 PDT
All reviewed patches have been landed.  Closing bug.