Closed
Bug 1241752
Opened 10 years ago
Closed 10 years ago
Remove runtime warning for nsIContent::GetEditingHost()
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
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
Assignee | ||
Comment 1•10 years ago
|
||
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 2•10 years ago
|
||
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+
Comment 4•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•