Closed
Bug 529192
Opened 16 years ago
Closed 16 years ago
crash [@ nsXULListCellAccessible::GetAttributesInternal(nsIPersistentProperties*)]
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .7-fixed |
People
(Reporter: davidb, Assigned: davidb)
Details
(Keywords: crash, verified1.9.2, Whiteboard: [tb31needed][rc1 build 2 fixed])
Crash Data
Attachments
(1 file)
695 bytes,
patch
|
MarcoZ
:
review+
surkov
:
review+
christian
:
approval1.9.2.7+
|
Details | Diff | Splinter Review |
GetTable can return without a valid table, we missed one spot where we check this.
E.g. http://crash-stats.mozilla.com/report/index/06a1f27c-ce4c-4436-8a3c-960bb2091110
Assignee | ||
Updated•16 years ago
|
Attachment #412751 -
Attachment is patch: true
Attachment #412751 -
Attachment mime type: application/octet-stream → text/plain
Attachment #412751 -
Flags: review?(surkov.alexander)
Attachment #412751 -
Flags: review?(marco.zehe)
Updated•16 years ago
|
Attachment #412751 -
Flags: review?(surkov.alexander) → review+
Comment 1•16 years ago
|
||
Comment on attachment 412751 [details] [diff] [review]
trivial fix
> // "table-cell-index" attribute
> nsCOMPtr<nsIAccessibleTable> table;
> GetTable(getter_AddRefs(table));
>+ if (!table)
>+ return NS_OK;
failure and warn, r=me with this
Comment 2•16 years ago
|
||
Comment on attachment 412751 [details] [diff] [review]
trivial fix
r=me, with the same nit as Alex, obviously :)
Attachment #412751 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #1)
> (From update of attachment 412751 [details] [diff] [review])
>
> > // "table-cell-index" attribute
> > nsCOMPtr<nsIAccessibleTable> table;
> > GetTable(getter_AddRefs(table));
> >+ if (!table)
> >+ return NS_OK;
>
> failure and warn, r=me with this
Is there a reason we expect GetTable to always succeed? Note we don't fail and warn in 3 other places in this same file ;)
Comment 4•16 years ago
|
||
Yes, because it's a problem when XUL list cell accessible hasn't XUL listbox accessible. If it's wrong markup then we shouldn't create cell accessible in this case. If it's invalidation problem then we should address it. I think we should warn into console to know we have problems and when it happens.
Assignee | ||
Comment 5•16 years ago
|
||
OK so we expect GetTable to always succeed inside nsXULListCellAccessible? So shall I add fails in the other 3 places?
I'm not a huge fan of warnings since the console is already so noisy/unusable.
Comment 6•16 years ago
|
||
(In reply to comment #5)
> OK so we expect GetTable to always succeed inside nsXULListCellAccessible? So
> shall I add fails in the other 3 places?
right
> I'm not a huge fan of warnings since the console is already so noisy/unusable.
and that means we have lot of work and it shouldn't mean we should hide problems :)
Assignee | ||
Comment 7•16 years ago
|
||
(In reply to comment #6)
> (In reply to comment #5)
> and that means we have lot of work and it shouldn't mean we should hide
> problems :)
I agree on one level, but I won't notice the warnings. I'll add them.
Assignee | ||
Comment 8•16 years ago
|
||
Our accessibility code is probably the closest thing to a run-time XUL validator Mozilla has :)
Comment 9•16 years ago
|
||
(In reply to comment #8)
> Our accessibility code is probably the closest thing to a run-time XUL
> validator Mozilla has :)
Haha :) I hope we'll fix this in the future.
Assignee | ||
Comment 10•16 years ago
|
||
Silly me, we already have bug 516047 with the 192 fix.
Assignee | ||
Comment 11•16 years ago
|
||
landed on central: http://hg.mozilla.org/mozilla-central/rev/07c8d3fc2702
Assignee: nobody → bolterbugz
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 12•15 years ago
|
||
Comment on attachment 412751 [details] [diff] [review]
trivial fix
This bug recently surfaced in Thunderbird 3.1b2pre, see:
http://crash-stats.mozilla.com/report/list?range_value=2&range_unit=weeks&signature=nsXULListCellAccessible%3A%3AGetAttributesInternal(nsIPersistentProperties*)&version=Thunderbird%3A3.1b2pre
Specific report:
http://crash-stats.mozilla.com/report/index/311ba50e-bee1-4d7d-b50d-855fe2100413
Requesting to land this on 1.9.2.5 ASAP. Has been baking on trunk and been known to fix the problem there. Trivial fix.
Attachment #412751 -
Flags: approval1.9.2.5?
Summary: crash [nsXULListCellAccessible::GetAttributesInternal(nsIPersistentProperties*)] → crash [@ nsXULListCellAccessible::GetAttributesInternal(nsIPersistentProperties*)]
Comment 13•15 years ago
|
||
On Marco's recommendation, as this can apparently break some screen readers, I've checked this into Thunderbird's relbranch on mozilla-1.9.2 for Thunderbird 3.1 RC 1:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/96d514d88fb1
We'll look for the formal 1.9.2 landing later.
Whiteboard: [tb31needs][rc1 build 2 fixed][needs approval 1.9.2.5 for TB 3.1.1]
Comment 14•15 years ago
|
||
(In reply to comment #13)
> On Marco's recommendation, as this can apparently break some screen readers,
> I've checked this into Thunderbird's relbranch on mozilla-1.9.2 for Thunderbird
> 3.1 RC 1:
Very cool, thanks! I'll let the user who reported this issue with their screen reader to test RC1 and report to me if they still experience problems. I expect not, though.
Comment 15•15 years ago
|
||
(In reply to comment #14)
> (In reply to comment #13)
> > On Marco's recommendation, as this can apparently break some screen readers,
> > I've checked this into Thunderbird's relbranch on mozilla-1.9.2 for Thunderbird
> > 3.1 RC 1:
>
> Very cool, thanks! I'll let the user who reported this issue with their screen
> reader to test RC1 and report to me if they still experience problems. I expect
> not, though.
As expected, the user could confirm that this problem is fixed for her in Thunderbird 3.1RC1. Thanks guys for taking this patch on your relbranch!
Comment 16•15 years ago
|
||
Comment on attachment 412751 [details] [diff] [review]
trivial fix
a=LegNeato for 1.9.2.6. Please land this on mozilla-1.9.2 default.
Code freeze is on 2010-06-25.
Attachment #412751 -
Flags: approval1.9.2.5? → approval1.9.2.6+
Comment 17•15 years ago
|
||
Landed on 1.9.2 on Davidb's behalf: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/4bd15fac7a13
status1.9.2:
--- → .6-fixed
Updated•15 years ago
|
Whiteboard: [tb31needs][rc1 build 2 fixed][needs approval 1.9.2.5 for TB 3.1.1] → [tb31needed][rc1 build 2 fixed]
Comment 18•15 years ago
|
||
Marco, can you verify this is fixed in a 1.9.2 build (Firefox or Mozilla)?
Comment 19•15 years ago
|
||
As per my comment #15, and due to the fact that I landed the patch on the default 1.9.2 branch afterwards, too, declaring this verified fixed in 1.9.2.6.
Keywords: verified1.9.2
Updated•14 years ago
|
Crash Signature: [@ nsXULListCellAccessible::GetAttributesInternal(nsIPersistentProperties*)]
You need to log in
before you can comment on or make changes to this bug.
Description
•