Closed
Bug 421066
Opened 17 years ago
Closed 17 years ago
Implement all nsIAccessibleHyperLink methods for XUL:label elements that are used as links.
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
VERIFIED
FIXED
mozilla1.9
People
(Reporter: MarcoZ, Assigned: surkov)
References
Details
(Keywords: access)
Attachments
(4 files, 1 obsolete file)
|
2.07 KB,
application/vnd.mozilla.xul+xml
|
Details | |
|
35.28 KB,
patch
|
ginnchen+exoracle
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
|
1.95 KB,
patch
|
MarcoZ
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
|
7.63 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
See bug 418368 for the discussion. Mochitest for this will be created in that bug.
| Assignee | ||
Comment 1•17 years ago
|
||
Marco, could you update and make full as possible your mochitests because this bug may require to change a lot of code.
Status: NEW → ASSIGNED
| Reporter | ||
Comment 2•17 years ago
|
||
Adjusted summary. Testcase coming up.
Summary: Implement all missing nsIAccessibleHyperLink methods for XUL:label elements that are used as links. → Implement all nsIAccessibleHyperLink methods for XUL:label elements that are used as links.
| Reporter | ||
Comment 3•17 years ago
|
||
This shows that trying to get the nsIAccessibleHyperLink interface fails completely on xul:labels that have been turned into hyperlinks.
| Assignee | ||
Comment 4•17 years ago
|
||
Attachment #308820 -
Flags: review?(ginn.chen)
Comment on attachment 308820 [details] [diff] [review]
patch
+already_AddRefed<nsIAccessible>
+nsLinkableAccessible::GetActionAccessible()
+ nsCOMPtr<nsIDOMNode> actionNode(do_QueryInterface(mActionContent));
+ if (!actionNode || mDOMNode == actionNode)
+ return nsnull;
Please add a comment here, explain why mDOMNode should not be actionNode
Call GetAccessibleInWeakShell in nsLinkableAccessible::CacheActionContent() caused a stack overflow.
Please fix it.
Attachment #308820 -
Flags: review?(ginn.chen) → review-
| Assignee | ||
Comment 6•17 years ago
|
||
Attachment #308820 -
Attachment is obsolete: true
Attachment #309410 -
Flags: review?(ginn.chen)
Attachment #309410 -
Flags: review?(ginn.chen) → review+
| Assignee | ||
Updated•17 years ago
|
Attachment #309410 -
Flags: approval1.9?
Comment 7•17 years ago
|
||
Comment on attachment 309410 [details] [diff] [review]
patch2
a1.9=beltzner
Attachment #309410 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 8•17 years ago
|
||
Checking in accessible/src/base/nsBaseWidgetAccessible.cpp;
/cvsroot/mozilla/accessible/src/base/nsBaseWidgetAccessible.cpp,v <-- nsBaseWidgetAccessible.cpp
new revision: 1.69; previous revision: 1.68
done
Checking in accessible/src/base/nsBaseWidgetAccessible.h;
/cvsroot/mozilla/accessible/src/base/nsBaseWidgetAccessible.h,v <-- nsBaseWidgetAccessible.h
new revision: 1.27; previous revision: 1.26
done
Checking in accessible/src/html/nsHTMLAreaAccessible.cpp;
/cvsroot/mozilla/accessible/src/html/nsHTMLAreaAccessible.cpp,v <-- nsHTMLAreaAccessible.cpp
new revision: 1.33; previous revision: 1.32
done
Checking in accessible/src/html/nsHTMLAreaAccessible.h;
/cvsroot/mozilla/accessible/src/html/nsHTMLAreaAccessible.h,v <-- nsHTMLAreaAccessible.h
new revision: 1.18; previous revision: 1.17
done
Checking in accessible/src/html/nsHTMLLinkAccessible.cpp;
/cvsroot/mozilla/accessible/src/html/nsHTMLLinkAccessible.cpp,v <-- nsHTMLLinkAccessible.cpp
new revision: 1.26; previous revision: 1.25
done
Checking in accessible/src/html/nsHTMLLinkAccessible.h;
/cvsroot/mozilla/accessible/src/html/nsHTMLLinkAccessible.h,v <-- nsHTMLLinkAccessible.h
new revision: 1.23; previous revision: 1.22
done
Checking in accessible/src/xul/nsXULTextAccessible.cpp;
/cvsroot/mozilla/accessible/src/xul/nsXULTextAccessible.cpp,v <-- nsXULTextAccessible.cpp
new revision: 1.35; previous revision: 1.34
done
Checking in accessible/src/xul/nsXULTextAccessible.h;
/cvsroot/mozilla/accessible/src/xul/nsXULTextAccessible.h,v <-- nsXULTextAccessible.h
new revision: 1.22; previous revision: 1.21
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 9•17 years ago
|
||
The test case still throws an "no interface!" test failure for me. Alex, did this work for you?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 10•17 years ago
|
||
expose nsIAccessibleHyperLink unconditionally (see nsAccessible::QueryInterface) like we do html:a
Attachment #312460 -
Flags: review?(marco.zehe)
| Reporter | ||
Comment 11•17 years ago
|
||
Comment on attachment 312460 [details] [diff] [review]
patch3
Yes this works as expected, and also does not cause other labels to become links, either. I'll attach an updated Mochitest to this bug soon.
Attachment #312460 -
Flags: review?(marco.zehe) → review+
| Reporter | ||
Updated•17 years ago
|
Attachment #312460 -
Flags: approval1.9?
Comment 12•17 years ago
|
||
Comment on attachment 312460 [details] [diff] [review]
patch3
a=beltzner
Attachment #312460 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 13•17 years ago
|
||
/cvsroot/mozilla/accessible/src/xul/nsXULTextAccessible.cpp,v <-- nsXULTextAccessible.cpp
new revision: 1.36; previous revision: 1.35
done
Checking in accessible/src/xul/nsXULTextAccessible.h;
/cvsroot/mozilla/accessible/src/xul/nsXULTextAccessible.h,v <-- nsXULTextAccessible.h
new revision: 1.23; previous revision: 1.22
done
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 14•17 years ago
|
||
This Mochitest runs all supported interface method calls on two labels: One is a label with text embedded between the tags, the other has a value attribute. and one label that has not been made a link is being tested to make sure it doesn't get undesired link-related states by any checkin.
Attachment #315537 -
Flags: review?(surkov.alexander)
| Assignee | ||
Comment 15•17 years ago
|
||
Comment on attachment 315537 [details] [diff] [review]
Mochitest
// Activate accessibility, otherwise events aren't fired.
nit: what events do you want to listen?
otherwise it's good, r=me
Attachment #315537 -
Flags: review?(surkov.alexander) → review+
| Reporter | ||
Comment 16•17 years ago
|
||
(In reply to comment #15)
> (From update of attachment 315537 [details] [diff] [review])
> // Activate accessibility, otherwise events aren't fired.
>
> nit: what events do you want to listen?
Oops, Copy & Paste error. Will remove the part from the comma onwards. :-) Thanks for the catch!
| Reporter | ||
Comment 17•17 years ago
|
||
Checking in accessible/tests/mochitest/Makefile.in;
/cvsroot/mozilla/accessible/tests/mochitest/Makefile.in,v <-- Makefile.in
new revision: 1.14; previous revision: 1.13
done
RCS file: /cvsroot/mozilla/accessible/tests/mochitest/test_nsIAccessibleHyperLink.xul,v
done
Checking in accessible/tests/mochitest/test_nsIAccessibleHyperLink.xul;
/cvsroot/mozilla/accessible/tests/mochitest/test_nsIAccessibleHyperLink.xul,v <-- test_nsIAccessibleHyperLink.xul
initial revision: 1.1
done
This completes this bugfix.
| Reporter | ||
Comment 18•17 years ago
|
||
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041306 Minefield/3.0pre
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•