WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
85541
Chromium should include MenuListPopups' and MenuListOptions' within the ax tree.
https://bugs.webkit.org/show_bug.cgi?id=85541
Summary
Chromium should include MenuListPopups' and MenuListOptions' within the ax tree.
David Tseng
Reported
2012-05-03 14:01:11 PDT
Chromium should include MenuListPopups' and MenuListOptions' within the ax tree.
Attachments
Patch
(2.14 KB, patch)
2012-05-03 14:01 PDT
,
David Tseng
no flags
Details
Formatted Diff
Diff
Patch
(2.81 KB, patch)
2012-05-04 08:47 PDT
,
David Tseng
no flags
Details
Formatted Diff
Diff
Patch
(3.88 KB, patch)
2012-05-04 09:30 PDT
,
David Tseng
no flags
Details
Formatted Diff
Diff
Patch
(3.89 KB, patch)
2012-05-04 09:35 PDT
,
David Tseng
no flags
Details
Formatted Diff
Diff
Patch
(3.97 KB, patch)
2012-05-04 09:49 PDT
,
David Tseng
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
David Tseng
Comment 1
2012-05-03 14:01:51 PDT
Created
attachment 140085
[details]
Patch
chris fleizach
Comment 2
2012-05-03 14:10:52 PDT
Comment on
attachment 140085
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=140085&action=review
> Source/WebCore/accessibility/AccessibilityMockObject.h:42 > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; }
i don't think mock objects should be ignored if the platform says default behavior
> Source/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp:40 > + return IncludeObject;
you can probably just remove this block all together. my guess is the default behavior will include these
David Tseng
Comment 3
2012-05-03 14:37:34 PDT
(In reply to
comment #2
)
> (From update of
attachment 140085
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=140085&action=review
> > > Source/WebCore/accessibility/AccessibilityMockObject.h:42 > > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; } > > i don't think mock objects should be ignored if the platform says default behavior
AccessibilityObject currently returns true for accessibilityIsIgnored. As the immediate subclass, AccessibilityMockObject defaults currently to this behavior. Would you prefer != IncludeObject or == IncludeObject?
> > > Source/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp:40 > > + return IncludeObject; > > you can probably just remove this block all together. my guess is the default behavior will include these
See above; currently, AccessibilityMockObject doesn't ask the platform for its preference on ignoring an object and defaults to ignore.
chris fleizach
Comment 4
2012-05-03 14:43:43 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 140085
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=140085&action=review
> > > > > Source/WebCore/accessibility/AccessibilityMockObject.h:42 > > > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; } > > > > i don't think mock objects should be ignored if the platform says default behavior > > AccessibilityObject currently returns true for accessibilityIsIgnored. As the immediate subclass, AccessibilityMockObject defaults currently to this behavior. >
Hmm. Yes, mock object is really meant to be subclassed. I don't think there should be any instances of just mock object. Same goes for AccessibilityObject as well. it seem like this logic could probably move into AccessibilityObject itself (i assume something similar is already in AXRenderObject... which could be removed). we could probably write this as accessibilityPlatformIncludes() != IncludeObject
> Would you prefer != IncludeObject or == IncludeObject? > > > > > > Source/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp:40 > > > + return IncludeObject; > > > > you can probably just remove this block all together. my guess is the default behavior will include these > > See above; currently, AccessibilityMockObject doesn't ask the platform for its preference on ignoring an object and defaults to ignore.
Are menu list elements MockObjects? if so, aren't they subclassed in some way?
David Tseng
Comment 5
2012-05-03 15:14:06 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > (From update of
attachment 140085
[details]
[details] [details]) > > > View in context:
https://bugs.webkit.org/attachment.cgi?id=140085&action=review
> > > > > > > Source/WebCore/accessibility/AccessibilityMockObject.h:42 > > > > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; } > > > > > > i don't think mock objects should be ignored if the platform says default behavior > > > > AccessibilityObject currently returns true for accessibilityIsIgnored. As the immediate subclass, AccessibilityMockObject defaults currently to this behavior. > > > > Hmm. Yes, mock object is really meant to be subclassed. I don't think there should be any instances of just mock object. Same goes for AccessibilityObject as well. > > it seem like this logic could probably move into AccessibilityObject itself (i assume something similar is already in AXRenderObject... which could be removed). > > we could probably write this as > > accessibilityPlatformIncludes() != IncludeObject > > > Would you prefer != IncludeObject or == IncludeObject? > >
There's a bit more going on in AccessibilityRenderObject which would make bubbling up to AccessibilityObject difficult.
> > > > > > > Source/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp:40 > > > > + return IncludeObject; > > > > > > you can probably just remove this block all together. my guess is the default behavior will include these > > > > See above; currently, AccessibilityMockObject doesn't ask the platform for its preference on ignoring an object and defaults to ignore. > > Are menu list elements MockObjects? if so, aren't they subclassed in some way?
Yes, there are AccessibilityMenuPopupList's and AccessibilityMenuListOption's both of which are subclassing AccessibilityMockObject. Neither, however, overrides accessibilityIsIgnored so both default to ignored as well.
chris fleizach
Comment 6
2012-05-03 15:24:18 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > (In reply to
comment #3
) > > > (In reply to
comment #2
) > > > > (From update of
attachment 140085
[details]
[details] [details] [details]) > > > > View in context:
https://bugs.webkit.org/attachment.cgi?id=140085&action=review
> > > > > > > > > Source/WebCore/accessibility/AccessibilityMockObject.h:42 > > > > > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; } > > > > > > > > i don't think mock objects should be ignored if the platform says default behavior > > > > > > AccessibilityObject currently returns true for accessibilityIsIgnored. As the immediate subclass, AccessibilityMockObject defaults currently to this behavior. > > > > > > > Hmm. Yes, mock object is really meant to be subclassed. I don't think there should be any instances of just mock object. Same goes for AccessibilityObject as well. > > > > it seem like this logic could probably move into AccessibilityObject itself (i assume something similar is already in AXRenderObject... which could be removed). > > > > we could probably write this as > > > > accessibilityPlatformIncludes() != IncludeObject > > > > > Would you prefer != IncludeObject or == IncludeObject? > > > > > There's a bit more going on in AccessibilityRenderObject which would make bubbling up to AccessibilityObject difficult. > > > > > > > > > > Source/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp:40 > > > > > + return IncludeObject; > > > > > > > > you can probably just remove this block all together. my guess is the default behavior will include these > > > > > > See above; currently, AccessibilityMockObject doesn't ask the platform for its preference on ignoring an object and defaults to ignore. > > > > Are menu list elements MockObjects? if so, aren't they subclassed in some way? > > Yes, there are AccessibilityMenuPopupList's and AccessibilityMenuListOption's both of which are subclassing AccessibilityMockObject. Neither, however, overrides accessibilityIsIgnored so both default to ignored as well.
Maybe just those mock object subclasses should be modified in this case.
David Tseng
Comment 7
2012-05-04 08:47:30 PDT
Created
attachment 140243
[details]
Patch
WebKit Review Bot
Comment 8
2012-05-04 08:50:34 PDT
Attachment 140243
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
chris fleizach
Comment 9
2012-05-04 08:51:52 PDT
Comment on
attachment 140243
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=140243&action=review
> Source/WebCore/accessibility/AccessibilityMenuListPopup.h:44 > + virtual bool accessibilityIsIgnored() const { return accessibilityPlatformIncludesObject() == DefaultBehavior || accessibilityPlatformIncludesObject() == IgnoreObject; }
Since there's a bit of logic here i would move the function in the .cpp file instead of the header Also, I think accessibilityPlatformIncludesObject() != IncludeBehavior is a better way of writing since a) it only calls accessibilityPlatformIncludesObject() one time b) it's a little more clear than reference DefaultBehavior
David Tseng
Comment 10
2012-05-04 09:30:46 PDT
Created
attachment 140253
[details]
Patch
WebKit Review Bot
Comment 11
2012-05-04 09:32:17 PDT
Attachment 140253
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/accessibility/AccessibilityMenuListPopup.cpp:65: Place brace on its own line for function definitions. [whitespace/braces] [4] Source/WebCore/accessibility/AccessibilityMenuListOption.cpp:99: Place brace on its own line for function definitions. [whitespace/braces] [4] Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 3 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
David Tseng
Comment 12
2012-05-04 09:35:10 PDT
Created
attachment 140254
[details]
Patch
WebKit Review Bot
Comment 13
2012-05-04 09:37:48 PDT
Attachment 140254
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
chris fleizach
Comment 14
2012-05-04 09:38:18 PDT
Comment on
attachment 140254
[details]
Patch looks good, just fix the style issues
David Tseng
Comment 15
2012-05-04 09:49:13 PDT
Created
attachment 140258
[details]
Patch
WebKit Review Bot
Comment 16
2012-05-04 10:07:43 PDT
Comment on
attachment 140258
[details]
Patch Rejecting
attachment 140258
[details]
from review queue.
dtseng@google.com
does not have reviewer permissions according to
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py
. - If you do not have reviewer rights please read
http://webkit.org/coding/contributing.html
for instructions on how to use bugzilla flags. - If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your reviewer rights.
WebKit Review Bot
Comment 17
2012-05-04 10:08:28 PDT
Comment on
attachment 140258
[details]
Patch Rejecting
attachment 140258
[details]
from commit-queue.
dtseng@google.com
does not have committer permissions according to
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py
. - If you do not have committer rights please read
http://webkit.org/coding/contributing.html
for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
chris fleizach
Comment 18
2012-05-04 10:12:53 PDT
Comment on
attachment 140258
[details]
Patch you can't review your own patches yet. i assume you wanted CQ+ so i'm doing that for you
WebKit Review Bot
Comment 19
2012-05-04 10:46:52 PDT
Comment on
attachment 140258
[details]
Patch Clearing flags on attachment: 140258 Committed
r116125
: <
http://trac.webkit.org/changeset/116125
>
WebKit Review Bot
Comment 20
2012-05-04 10:46:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug