> mozilla::dom::VideoDocument* doc = new mozilla::dom::VideoDocument();
> NS_ENSURE_TRUE(doc, NS_ERROR_OUT_OF_MEMORY);
These checks are unnecessary since we are not using |new (std::nothrow)|.
Created attachment 578019 [details] [diff] [review]
Comment on attachment 578019 [details] [diff] [review]
Looks good to me, but I can't review this. I've forwarded the review to Olli.