Closed
Bug 408831
Opened 17 years ago
Closed 17 years ago
add check on defunct for tree accessible
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
VERIFIED
FIXED
People
(Reporter: surkov, Assigned: surkov)
Details
Attachments
(1 file)
11.00 KB,
patch
|
MarcoZ
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
spun off bug 396930. Idea is to add virtual method isDefunct to call it in each method. Tree accessible should override the method to check row on validity.
Assignee | ||
Comment 1•17 years ago
|
||
added IsDefunct(), I'll file following up bug to use that method everywhere.
Attachment #294066 -
Flags: review?(aaronleventhal)
Updated•17 years ago
|
Attachment #294066 -
Flags: review?(aaronleventhal) → review?(marco.zehe)
Comment 2•17 years ago
|
||
Comment on attachment 294066 [details] [diff] [review] patch > - NS_ENSURE_TRUE(mTree & mTreeView, NS_ERROR_FAILURE); > + if (IsDefunct()) > + return NS_ERROR_FAILURE; PRInt32 rowCount = 0; > nsresult rv = mTreeView->GetRowCount(rowCount); NS_ENSURE_SUCCESS(rv, rv); > if (mRow < 0 || mRow >= rowCount) { > return NS_ERROR_FAILURE; > } Isn't the unchanged part below the inserted "if (isDefunct())" statement also covered in IsDefunct() and should therefore be removed?
Comment 3•17 years ago
|
||
Comment on attachment 294066 [details] [diff] [review] patch r=MarcoZ with above fixed.
Attachment #294066 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 4•17 years ago
|
||
thank you for the catch, Marco. forgot to remove :)
Status: NEW → ASSIGNED
Assignee | ||
Updated•17 years ago
|
Attachment #294066 -
Flags: approval1.9?
Comment 5•17 years ago
|
||
Comment on attachment 294066 [details] [diff] [review] patch a=beltzner for 1.9
Attachment #294066 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•16 years ago
|
||
Verified using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b3) Gecko/2008020514 Firefox/3.0b3
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•