Closed
Bug 1048012
Opened 11 years ago
Closed 8 years ago
Provide a better error handling instead of |NS_RUNTIMEABORT("OOM")| introduced in Bug 950076
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1167189
People
(Reporter: Dexter, Unassigned)
Details
Bug 950076 introduced a few |NS_RUNTIMEABORT("OOM")| to handle out of memory situations (See https://bugzilla.mozilla.org/attachment.cgi?id=8394385).
As highlighted in Bug 1037214, those aborts should either be handled or replaced with NS_ABORT_OOM(size).
Reporter | ||
Comment 1•10 years ago
|
||
This is a list of the |NS_RUNTIMEABORT("OOM")| that need to be taken care of:
- |nsDocument::GetTitleFromElement| http://dxr.mozilla.org/mozilla-central/source/content/base/src/nsDocument.cpp#6682
- |nsTreeSanitizer::SanitizeChildren| http://dxr.mozilla.org/mozilla-central/source/content/base/src/nsTreeSanitizer.cpp#1402
- |HTMLMenuItemElement::GetText| http://dxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLMenuItemElement.cpp#375
- |HTMLOutputElement::GetValue| http://dxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLOutputElement.cpp#150
- |HTMLOutputElement::DescendantsChanged()| http://dxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLOutputElement.cpp#183
- |SVGScriptElement::GetScriptText| http://dxr.mozilla.org/mozilla-central/source/content/svg/content/src/SVGScriptElement.cpp#124
- |nsXBLPrototypeBinding::AttributeChanged| http://dxr.mozilla.org/mozilla-central/source/dom/xbl/nsXBLPrototypeBinding.cpp#364
- |static PLDHashOperator
SetAttrs| http://dxr.mozilla.org/mozilla-central/source/dom/xbl/nsXBLPrototypeBinding.cpp#518
- |nsMathMLTokenFrame::MarkTextFramesAsTokenMathML| http://dxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLTokenFrame.cpp#81
- |nsMathMLmoFrame::ProcessTextData| http://dxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLmoFrame.cpp#119
Reporter | ||
Comment 2•10 years ago
|
||
Errata: as mentioned by :jst in bug 950076 comment 22, |NS_RUNTIMEABORT("OOM")| should be kept in nsXBLPrototypeBinding.cpp.
Comment 3•10 years ago
|
||
That one should probably be NS_ABORT_OOM, now that we have it. It produces better crash-stats results.
Hi Alessio, I am also interested in taking this on. Please advise
Flags: needinfo?(alessio.placitelli)
Reporter | ||
Comment 6•9 years ago
|
||
No Patrick, this isn't a mentored bug.
Flags: needinfo?(alessio.placitelli)
Comment 7•8 years ago
|
||
Bug 1167189 replaced NS_RUNTIMEABORT("OOM") with NS_ABORT_OOM(0) in Firefox 39.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•