Created attachment 542776 [details] [diff] [review]
None of its callers check the return value, which can only be NS_OK because of infallible new.
Comment on attachment 542776 [details] [diff] [review]
You need to update the IID of nsIDocument
From the code changes made to:
it is obvious that AddXMLEventsContent now returns void instead of nsresult.