Closed
Bug 405552
Opened 17 years ago
Closed 17 years ago
Crash [@ nsHyperTextAccessible::ContentToRenderedOffset ]
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
References
Details
(Keywords: access, crash)
Crash Data
Attachments
(1 file, 2 obsolete files)
2.42 KB,
patch
|
evan.yan
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
When SetText occurs on something with no layout frame, we crash.
See crash reports:
http://crash-stats.mozilla.com/report/list?range_unit=weeks&query_search=signature&query_type=contains&signature=nsHyperTextAccessible%3A%3AContentToRenderedOffset(nsIFrame*%2C+int%2C+unsigned+int*)&query=ContentToRenderedOffset&range_value=1
Assignee | ||
Updated•17 years ago
|
Blocks: fox3access
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #290320 -
Flags: review?(Evan.Yan)
Comment on attachment 290320 [details] [diff] [review]
1) Don't fire text change events if text is not rendered, 2) if null frame passed in, return a rendered offset of 0, since nothing is rendered
It looks OK, except
> NS_IMETHODIMP nsDocAccessible::Destroy()
> {
>+ nsresult rv = Shutdown();
>+
> if (mWeakShell) {
>+ // Remove from the cache after Shutdown(), so that Shutdown() procedures
>+ // can find the doc or root accessible in the cache if they need it
> gGlobalDocAccessibleCache.Remove(static_cast<void*>(mWeakShell));
> }
>- return Shutdown();
>+ return rv;
> }
>
This change seems about some other bug, isn't it?
|this| is the doc or root acccessible, I can't think of a case that we need to find it in the cache. And nsAccessNode::Shutdown() will set mWeakShell to null.
Assignee | ||
Comment 3•17 years ago
|
||
Sorry, that was from a different patch.
Assignee | ||
Comment 4•17 years ago
|
||
Attachment #290320 -
Attachment is obsolete: true
Attachment #290326 -
Flags: review?
Attachment #290320 -
Flags: review?(Evan.Yan)
Assignee | ||
Comment 5•17 years ago
|
||
Attachment #290327 -
Flags: review?(Evan.Yan)
Assignee | ||
Updated•17 years ago
|
Attachment #290326 -
Attachment is obsolete: true
Attachment #290326 -
Flags: review?
Attachment #290327 -
Flags: review?(Evan.Yan) → review+
Assignee | ||
Updated•17 years ago
|
Attachment #290327 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #290327 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Crash Signature: [@ nsHyperTextAccessible::ContentToRenderedOffset ]
You need to log in
before you can comment on or make changes to this bug.
Description
•