Bug 882817 - Fix QI implementation of HTMLTrackElement. r=bz

In certain situations we were failing debug builds due to an assertion
that HTMLTrackElement was not a nsIDOMNode or nsIDOMWindow when calling
NS_CheckContentLoadPolicy in HTMLTrackElement::LoadResource()

This patch fixes the QI of the HTMLTrackElement so that it can be queried
to an nsIDOMNode correctly.
This commit is contained in:
Rick Eyre 2013-06-13 17:15:14 -04:00
parent e6d47d953b
commit 77b71509b9

View File

@ -94,7 +94,8 @@ NS_IMPL_CYCLE_COLLECTION_INHERITED_4(HTMLTrackElement, nsGenericHTMLElement,
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(HTMLTrackElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMHTMLElement)
NS_INTERFACE_MAP_END_INHERITING(nsGenericHTMLElement)
NS_HTML_CONTENT_INTERFACES(nsGenericHTMLElement)
NS_ELEMENT_INTERFACE_MAP_END
void
HTMLTrackElement::OnChannelRedirect(nsIChannel* aChannel,