Closed
Bug 865615
Opened 11 years ago
Closed 7 years ago
Remove Accessible::DOMNode
Categories
(Core :: Disability Access APIs, enhancement, P5)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: ayg, Assigned: dora.tokio, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
Attachments
(1 file, 2 obsolete files)
2.65 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
Requested in bug 864286 comment 3.
Comment 1•11 years ago
|
||
iirc we wanted to replace it on raw pointer version (I guess via nsINode::AsDOMNode())
Comment 2•11 years ago
|
||
I think there's only two or so uses, so it's probably easier to deal in the callers.
Comment 3•11 years ago
|
||
Will we still have the ability to reference the original DOM node from the accessible? I believe some of the JSAT folder uses, or new patches plan to use, this to gain access to the original node coming from the accessible object.
Comment 4•11 years ago
|
||
GetNode().
Comment 5•11 years ago
|
||
jsat is xpcom based, this bug is about internal method
Comment 6•11 years ago
|
||
(In reply to :Ms2ger from comment #2)
> I think there's only two or so uses, so it's probably easier to deal in the
> callers.
I don't mind
Updated•7 years ago
|
Mentor: surkov.alexander
Keywords: good-first-bug
Updated•7 years ago
|
Priority: -- → P5
Comment 7•7 years ago
|
||
Can anyone please explain this bug. I would like to work on it.
Comment 8•7 years ago
|
||
(In reply to Videet Singhai from comment #7)
> Can anyone please explain this bug. I would like to work on it.
technically, you should replace Accessible:DOMNode() instances on more appropriate calls like GetContent or GetNode().
https://searchfox.org/mozilla-central/source/accessible/generic/Accessible.h#169
Assignee | ||
Comment 9•7 years ago
|
||
Is nobody assigned to this bug yet?
Comment 10•7 years ago
|
||
(In reply to dora.tokio from comment #9)
> Is nobody assigned to this bug yet?
yup,nobady mean that no body is assigned
Comment 11•7 years ago
|
||
yep, feel free to claim it if you are keen to work on it
Assignee | ||
Comment 12•7 years ago
|
||
Thanks, I'd like to work on it.
Accessible::DOMNode() is called only twice, in a similar situation. So, I rewrite XULTabAccessible.cpp as follows, is this correct?
Before:
> nsCOMPtr<nsIDOMNode> domNode(DOMNode());
> nsCOMPtr<nsIDOMNode> tabpanelNode;
> tabsElm->GetRelatedElement(domNode, getter_AddRefs(tabpanelNode));
After:
> nsCOMPtr<nsIDOMNode> domNode(do_QueryInterface(GetNode()));
> nsCOMPtr<nsIDOMNode> tabpanelNode;
> tabsElm->GetRelatedElement(domNode, getter_AddRefs(tabpanelNode));
Assignee | ||
Comment 14•7 years ago
|
||
replace Accessible::DOMNode with Accessible::GetNode version
MozReview-Commit-ID: 9p74ISHnWzF
Assignee | ||
Comment 15•7 years ago
|
||
I'm sorry but some extra file was included in the patch. I'll try it again.
Assignee | ||
Comment 16•7 years ago
|
||
replace Accessible::DOMNode with Accessible::GetNode version
Assignee | ||
Comment 17•7 years ago
|
||
Oh, I'm so sorry again, an extra character 'S' was included.
Assignee | ||
Comment 18•7 years ago
|
||
replace Accessible::DOMNode with Accessible::GetNode version
Updated•7 years ago
|
Attachment #8961444 -
Flags: review+
Updated•7 years ago
|
Attachment #8961304 -
Attachment is obsolete: true
Updated•7 years ago
|
Attachment #8961301 -
Attachment is obsolete: true
Updated•7 years ago
|
Keywords: checkin-needed
Comment 19•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a5a9d5bca98b
Remove Accessible::DOMNode. r=surkov
Keywords: checkin-needed
Comment 20•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•