Closed
Bug 1285643
Opened 8 years ago
Closed 8 years ago
Make xpcAccessibleValue work with proxied accessibles
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: michael.li11702, Assigned: michael.li11702)
References
Details
Attachments
(1 file, 4 obsolete files)
4.48 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8769328 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → mili
Comment 2•8 years ago
|
||
Comment on attachment 8769328 [details] [diff] [review] Make xpcAccessibleValue work with proxied accessibles. r?tbsaunde > inline Accessible* > xpcAccessibleValue::Intl() > { > return static_cast<xpcAccessibleGeneric*>(this)->mIntl.AsAccessible(); > } it might be nice to rewrite things so this function can go away. > NS_IMETHODIMP > xpcAccessibleValue::GetMaximumValue(double* aValue) > { > NS_ENSURE_ARG_POINTER(aValue); > *aValue = 0; > > if (Intl()->IsDefunct()) > return NS_ERROR_FAILURE; >+ if (IntlGeneric().IsNull()) >+ return NS_ERROR_FAILURE; those conditions need to be the other way around, if IntlGeneric().IsNull() is true then Intl() will return null. >+ double value; >+ if (IntlGeneric().IsAccessible()) { >+ value = Intl()->MaxValue(); >+ } >+ else if (IntlGeneric().IsProxy()) { else if goes on same line as } also given you have eliminated the other cases the if must be true so else should be fine I believe. > NS_IMETHODIMP > xpcAccessibleValue::GetMinimumValue(double* aValue) Similar comments as the previous function. > NS_IMETHODIMP > xpcAccessibleValue::SetCurrentValue(double aValue) same here
Attachment #8769328 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8769356 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Updated•8 years ago
|
Attachment #8769328 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8769356 -
Attachment description: Make xpcAccessibleValue work with proxied accessibles. → Make xpcAccessibleValue work with proxied accessibles. r?tbsaunde
Comment 4•8 years ago
|
||
Comment on attachment 8769356 [details] [diff] [review] Make xpcAccessibleValue work with proxied accessibles. r?tbsaunde >- if (Intl()->IsDefunct()) >+ if (Intl().IsNull()) > return NS_ERROR_FAILURE; there should be a blank line here I think >+ if (Intl().AsAccessible()->IsDefunct()) you don't know Intl().IsAccessible() is true so that isn't safe. >- if (Intl()->IsDefunct()) >+ if (Intl().IsNull()) > return NS_ERROR_FAILURE; >+ if (Intl().AsAccessible()->IsDefunct()) same here and below.
Attachment #8769356 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8769887 -
Flags: review?(tbsaunde+mozbugs)
Assignee | ||
Updated•8 years ago
|
Attachment #8769356 -
Attachment is obsolete: true
Updated•8 years ago
|
Attachment #8769887 -
Flags: review?(tbsaunde+mozbugs) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9e87f6e3d61f Make xpcAccessibleValue work with proxied accessibles. r=tbsaunde
Keywords: checkin-needed
Assignee | ||
Comment 7•8 years ago
|
||
Try server results: https://treeherder.mozilla.org/#/jobs?repo=try&revision=8f4fe080b3b9
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9e87f6e3d61f
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Assignee | ||
Comment 9•8 years ago
|
||
Assignee | ||
Comment 10•8 years ago
|
||
I missed this error in my first patch, my bad.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•8 years ago
|
Attachment #8770645 -
Flags: review+
Assignee | ||
Comment 11•8 years ago
|
||
Attachment #8770653 -
Flags: review+
Assignee | ||
Comment 12•8 years ago
|
||
After these two extra patches are applied, bug 1276721 is fixed and all tests in accessible/tests/browser_caching_values.js pass.
Assignee | ||
Updated•8 years ago
|
Comment 13•8 years ago
|
||
Now that the dependent bugs have landed, marking this one fixed again. Michael, you should probably mark the obsolete patches obsolete, since you actually dealt with them in the other bugs. :-)
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•8 years ago
|
Attachment #8770645 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8770653 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•