Closed
Bug 211357
Opened 22 years ago
Closed 22 years ago
[FIX]Crash - accessing TR.rowIndex
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.5alpha
People
(Reporter: bc, Assigned: bzbarsky)
References
Details
(Keywords: crash, fixed1.4.1, testcase)
Attachments
(2 files)
|
454 bytes,
text/html
|
Details | |
|
1.22 KB,
patch
|
jst
:
review+
jst
:
superreview+
asa
:
approval1.4.1+
|
Details | Diff | Splinter Review |
Create a TR element and access TR.rowIndex before attaching to a TABLE to crash.
| Reporter | ||
Comment 1•22 years ago
|
||
| Reporter | ||
Comment 2•22 years ago
|
||
http://climate/reports/SingleIncidentInfo.cfm?dynamicBBID=21533709
http://climate/reports/SingleIncidentInfo.cfm?dynamicBBID=21533590
Severity: normal → major
Keywords: testcase
| Assignee | ||
Comment 3•22 years ago
|
||
The null-checking here got badly broken at some point....
| Assignee | ||
Comment 4•22 years ago
|
||
Comment on attachment 126883 [details] [diff] [review]
patch
jst, is peterv generally around? I'm feeling bad about all these review
requests...
Attachment #126883 -
Flags: superreview?(jst)
Attachment #126883 -
Flags: review?(jst)
| Assignee | ||
Comment 5•22 years ago
|
||
.
Assignee: dom_bugs → bzbarsky
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Summary: Crash - accessing TR.rowIndex → [FIX]Crash - accessing TR.rowIndex
Target Milestone: --- → mozilla1.5alpha
Comment 6•22 years ago
|
||
Comment on attachment 126883 [details] [diff] [review]
patch
nsresult rv = GetParentNode(getter_AddRefs(sectionNode));
- NS_ENSURE_SUCCESS(rv, rv);
+ NS_ENSURE_TRUE(sectionNode, rv);
nsCOMPtr<nsIDOMNode> tableNode;
rv = sectionNode->GetParentNode(getter_AddRefs(tableNode));
- if (NS_SUCCEEDED(rv) && sectionNode) {
- rv = CallQueryInterface(tableNode, aTable);
- }
-
- return rv;
+ NS_ENSURE_TRUE(tableNode, rv);
+
+ return CallQueryInterface(tableNode, aTable);
Shouldn't those be just "if (!...) return rv;"? We don't want to print out a
warning just because a tr element has no parent when accessing .rowIndex do we?
r+sr=jst
Attachment #126883 -
Flags: superreview?(jst)
Attachment #126883 -
Flags: superreview+
Attachment #126883 -
Flags: review?(jst)
Attachment #126883 -
Flags: review+
| Assignee | ||
Comment 7•22 years ago
|
||
Indeed. Changed those to normal ifs and checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•22 years ago
|
||
This isn't that big a deal, but should we get it on the 1.4 branch as well?
| Assignee | ||
Comment 9•22 years ago
|
||
Might be a good idea, yes... simple fix and all.
Flags: blocking1.4.x?
Updated•22 years ago
|
Attachment #126883 -
Flags: approval1.4.x?
Comment 10•22 years ago
|
||
Comment on attachment 126883 [details] [diff] [review]
patch
a=asa (on behalf of drivers) for checkin to the 1.4 branch. Time is short. Who
can land this for us?
Attachment #126883 -
Flags: approval1.4.x? → approval1.4.x+
| Assignee | ||
Updated•22 years ago
|
Keywords: fixed1.4 → fixed1.4.1
You need to log in
before you can comment on or make changes to this bug.
Description
•