Closed Bug 882817 Opened 7 years ago Closed 7 years ago

[webvtt] Fix assertion errors on debug builds for the new tests

Categories

(Core :: Audio/Video, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: reyre, Assigned: reyre)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

We're currently getting some assertion errors that we aren't expecting when we run our tests in the test suite.

https://tbpl.mozilla.org/?tree=Try&rev=449474f24c45

This is happening when we check the content load policy for the HTMLTrackElement. We pass in the HTMLTrackElement as an argument, but later Gecko seems to think it's not a window or DOM node and an assertion is thrown.
Assignee: nobody → rick.eyre
Blocks: webvtt, 833386, 882131
Status: NEW → ASSIGNED
https://tbpl.mozilla.org/?tree=Try&rev=9f09df497708

The new tests don't show up in the try changesets added, but if you go to the log you can see them being run.
Attachment #762454 - Flags: review?(bzbarsky)
Comment on attachment 762454 [details] [diff] [review]
v1: Fix QI implementation of HTMLTrackElement

r=me
Attachment #762454 - Flags: review?(bzbarsky) → review+
Just updated the commit message to include r=bz
Attachment #762454 - Attachment is obsolete: true
Keywords: checkin-needed
Comment on attachment 762460 [details] [diff] [review]
v1: Fix QI implementation of HTMLTrackElement r=bz

Review of attachment 762460 [details] [diff] [review]:
-----------------------------------------------------------------

::: content/html/content/src/HTMLTrackElement.cpp
@@ +94,3 @@
>  
>  NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(HTMLTrackElement)
>    NS_INTERFACE_MAP_ENTRY(nsIDOMHTMLElement)

NS_HTML_CONTENT_INTERFACES already deals with nsIDOMHTMLElement so this line is unnecessary.
Do you want to back this out of the tree then or just a forward fix?
Peter has recommended on IRC that we can just do a fix in the future. I'll open a bug for that and try to have a patch for it today.
https://hg.mozilla.org/mozilla-central/rev/229c4d26630e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.