Bug 215649 - [ macOS ] accessibility/mac/select-element-selection-with-optgroups.html is a flaky failure
Summary: [ macOS ] accessibility/mac/select-element-selection-with-optgroups.html is a...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-19 08:58 PDT by Hector Lopez
Modified: 2020-10-14 06:29 PDT (History)
11 users (show)

See Also:


Attachments
Patch (26.44 KB, patch)
2020-10-10 12:07 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (26.08 KB, patch)
2020-10-13 13:56 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 Hector Lopez 2020-08-19 08:58:00 PDT
accessibility/mac/select-element-selection-with-optgroups.html 

Test is a flaky failure according to history on macOS. Failures have been most recently on Debug. Last failure on Release was at r261505. Will setup expectations across macOS. There is no indication of first occurrence as failures reach the limit of history going back as far as limit of results webpage.

Maybe related to https://bugs.webkit.org/show_bug.cgi?id=175341

History:
https://results.webkit.org/?suite=layout-tests&test=accessibility%2Fmac%2Fselect-element-selection-with-optgroups.html&limit=50000

Diff:
--- /Volumes/Data/slave/catalina-debug-tests-wk2/build/layout-test-results/accessibility/mac/select-element-selection-with-optgroups-expected.txt
+++ /Volumes/Data/slave/catalina-debug-tests-wk2/build/layout-test-results/accessibility/mac/select-element-selection-with-optgroups-actual.txt
@@ -10,7 +10,7 @@
 PASS selectElement.selectedChildrenCount became 1
 PASS selectElement.selectedChildAtIndex(0).isEqual(option2) is true
 PASS selectElement.selectedChildrenCount became 1
-PASS selectElement.selectedChildAtIndex(0).isEqual(option3) is true
+FAIL selectElement.selectedChildAtIndex(0).isEqual(option3) should be true. Was false.
 PASS successfullyParsed is true
 
 TEST COMPLETE
Comment 1 Radar WebKit Bug Importer 2020-08-19 08:58:24 PDT
<rdar://problem/67406148>
Comment 2 Hector Lopez 2020-08-19 09:21:34 PDT
Test expectation while investigated:

https://trac.webkit.org/changeset/265862/webkit
Comment 3 Andres Gonzalez 2020-10-10 12:07:07 PDT
Created attachment 411016 [details]
Patch
Comment 4 chris fleizach 2020-10-12 10:50:31 PDT
Comment on attachment 411016 [details]
Patch

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

> Source/WebCore/accessibility/AXObjectCache.cpp:959
> +    Vector<RefPtr<AXCoreObject>> axObjects;

can we use the map function in Vector to make this use less code?

> Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:154
> +    result.reserveCapacity(objects.size());

can we use a map function to reduce code?
Comment 5 Andres Gonzalez 2020-10-13 13:56:45 PDT
Created attachment 411249 [details]
Patch
Comment 6 Andres Gonzalez 2020-10-13 13:58:08 PDT
(In reply to chris fleizach from comment #4)
> Comment on attachment 411016 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=411016&action=review
> 
> > Source/WebCore/accessibility/AXObjectCache.cpp:959
> > +    Vector<RefPtr<AXCoreObject>> axObjects;
> 
> can we use the map function in Vector to make this use less code?

Done.
> 
> > Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:154
> > +    result.reserveCapacity(objects.size());
> 
> can we use a map function to reduce code?

Done.
Comment 7 EWS 2020-10-14 06:29:18 PDT
Committed r268454: <https://trac.webkit.org/changeset/268454>

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