Closed Bug 565186 Opened 15 years ago Closed 15 years ago

WARNING: NS_ENSURE_TRUE(mDocument && mDocShell) failed: file nsHtml5TreeOpExecutor.cpp

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: vlad)

References

Details

Attachments

(1 file)

I see excessive numbers of: WARNING: NS_ENSURE_TRUE(mDocument && mDocShell) failed: file .../mozilla/parser/html/nsHtml5TreeOpExecutor.cpp, line 610 on many sites. (One example is http://maps.google.com/, but I've seen other sites with significantly larger numbers.) Should this actually spam the console every time it happens? Is there something going wrong?
The code is question is legacy code copied from elsewhere in Gecko (from nsHTMLContentSink.cpp), which is why it uses NS_ENSURE_TRUE, which in turn spams the console pointlessly. The new parser calls this code where the old parser didn't (in innerHTML setter), because there's no normal sink / fragment sink distinction. Changing this is bug 559319.
Depends on: 559319
If the spam is pointless, can we just remove it, like so?
Attachment #449056 - Flags: review?(hsivonen)
Attachment #449056 - Flags: review?(hsivonen) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee: nobody → vladimir
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: