Bug 129243 - AX: AccessibilityObject::findMatchingObjects should never include 'this' in results.
Summary: AX: AccessibilityObject::findMatchingObjects should never include 'this' in r...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.9
: P2 Normal
Assignee: Samuel White
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-02-24 00:16 PST by Samuel White
Modified: 2014-02-24 16:24 PST (History)
11 users (show)

See Also:


Attachments
Patch. (4.79 KB, patch)
2014-02-24 12:35 PST, Samuel White
cfleizach: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (462.52 KB, application/zip)
2014-02-24 13:35 PST, Build Bot
no flags Details
Updated patch. (4.80 KB, patch)
2014-02-24 13:38 PST, Samuel White
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel White 2014-02-24 00:16:26 PST
findMatchingObjects searches children of 'this', it should never be possible for 'this' to be included in results.
Comment 1 Radar WebKit Bug Importer 2014-02-24 00:16:56 PST
<rdar://problem/16145684>
Comment 2 Radar WebKit Bug Importer 2014-02-24 00:17:00 PST
<rdar://problem/16145685>
Comment 3 Samuel White 2014-02-24 12:35:54 PST
Created attachment 225083 [details]
Patch.

Previously, the container object could be included in the search results when searching backwards. This patch removes that and makes forward/backwards results consistent with each other.
Comment 4 chris fleizach 2014-02-24 13:01:46 PST
Comment on attachment 225083 [details]
Patch.

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

> LayoutTests/platform/mac/accessibility/search-predicate-container-not-included.html:25
> +        shouldBe("forwardResult", "undefined");

Make sure this works on wk2 as well as wk1
Comment 5 Samuel White 2014-02-24 13:25:01 PST
(In reply to comment #4)
> (From update of attachment 225083 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=225083&action=review
> 
> > LayoutTests/platform/mac/accessibility/search-predicate-container-not-included.html:25
> > +        shouldBe("forwardResult", "undefined");
> 
> Make sure this works on wk2 as well as wk1

Looks like it doesn't, fixing now.
Comment 6 Build Bot 2014-02-24 13:35:52 PST
Comment on attachment 225083 [details]
Patch.

Attachment 225083 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5780764994043904

New failing tests:
svg/masking/mask-negative-scale.svg
platform/mac/accessibility/search-predicate-container-not-included.html
Comment 7 Build Bot 2014-02-24 13:35:53 PST
Created attachment 225091 [details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 8 Samuel White 2014-02-24 13:38:51 PST
Created attachment 225092 [details]
Updated patch.

Updated test to check the result count instead of the result type to make the test more test harness agnostic.
Comment 9 WebKit Commit Bot 2014-02-24 16:24:03 PST
Comment on attachment 225092 [details]
Updated patch.

Clearing flags on attachment: 225092

Committed r164616: <http://trac.webkit.org/changeset/164616>
Comment 10 WebKit Commit Bot 2014-02-24 16:24:06 PST
All reviewed patches have been landed.  Closing bug.