Closed Bug 1241752 Opened 10 years ago Closed 10 years ago

Remove runtime warning for nsIContent::GetEditingHost()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

Calling nsIContent::GetEditingHost() [1] on a non-editable content generates the warning "WARNING: NS_ENSURE_TRUE(IsEditableInternal())". This generates a log of warning when I drag AccessibleCaret on same non-editable content on debug build. I think returning null editing host for a non-editable is a normal failing case, which does not need a warning. [1] https://dxr.mozilla.org/mozilla-central/source/dom/base/FragmentOrElement.cpp#242
Returning a null editing host for a non-editable is a normal failing case, which does not need a warning. Review commit: https://reviewboard.mozilla.org/r/31893/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/31893/
Attachment #8710873 - Flags: review?(bugs)
Comment on attachment 8710873 [details] MozReview Request: Bug 1241752 - Remove runtime warning for nsIContent::GetEditingHost(). r?smaug https://reviewboard.mozilla.org/r/31893/#review28793
Attachment #8710873 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: