Closed Bug 504968 Opened 11 years ago Closed 10 years ago

[HTML5] "###!!! ASSERTION: QueryInterface needed" in nsHtml5Parser::FinalizeSniffing

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: mozilla+ben, Assigned: mozilla+ben)

Details

Attachments

(1 file)

The source of the failing assertion is this call to Init:
  
  nsCOMPtr<nsICharsetDetector> detector =
    do_CreateInstance(detectorContractID.get());
  if (detector) {
    nsresult rv = detector->Init(this);

nsICharsetDetector::Init expects an nsICharsetDetectorObserver*, but the parser doesn't have an interface table entry for that.
Attachment #389247 - Flags: review?(hsivonen)
Attachment #389247 - Flags: review?(hsivonen) → review+
Attachment #389247 - Flags: superreview?(mrbkap)
Attachment #389247 - Flags: superreview?(mrbkap) → superreview+
Pushed to mozilla-central:
http://hg.mozilla.org/mozilla-central/rev/0da8bdba8c6f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.