Closed
Bug 545738
Opened 14 years ago
Closed 14 years ago
clean up nsAccessibilityService::GetAccessible() and related
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file)
86.91 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #426657 -
Flags: review?(bolterbugz)
Assignee | ||
Comment 2•14 years ago
|
||
https://build.mozilla.org/tryserver-builds/surkov.alexander@gmail.com-try-dcd9e3c79010/
Comment 3•14 years ago
|
||
Comment on attachment 426657 [details] [diff] [review] patch I probably need coffee but: >+already_AddRefed<nsAccessible> >+nsAccessibilityService::CreateAccessibleForDeckChild(nsIFrame* aFrame, >+ nsIDOMNode *aNode, >+ nsIWeakReference *aWeakShell) > { >- return NS_OK; >+ return accessible.forget(); > } This doesn't look safe since we haven't addrefed the accessible. You do this in several places...
Attachment #426657 -
Flags: review?(bolterbugz)
Assignee | ||
Comment 4•14 years ago
|
||
(In reply to comment #3) > (From update of attachment 426657 [details] [diff] [review]) > I probably need coffee but: yep, please :) > >+already_AddRefed<nsAccessible> > >+nsAccessibilityService::CreateAccessibleForDeckChild(nsIFrame* aFrame, > >+ nsIDOMNode *aNode, > >+ nsIWeakReference *aWeakShell) > > { > > >- return NS_OK; > >+ return accessible.forget(); > > } > > This doesn't look safe since we haven't addrefed the accessible. You do this in > several places... forget() forgets the pointer and returns already_AddRefed
Comment 5•14 years ago
|
||
Ah right the caller is using a smart pointer.
Comment 6•14 years ago
|
||
Comment on attachment 426657 [details] [diff] [review] patch r=me. Nice changes.
Attachment #426657 -
Flags: review+
Assignee | ||
Comment 7•14 years ago
|
||
landed on 1.9.3 - http://hg.mozilla.org/mozilla-central/rev/acab380e4de3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•