Bug 678465 - 'document-element-inserted' doesn't fire on ImageDocument; r=bz

This commit is contained in:
Gabor Krizsanits
2011-12-15 15:10:36 +00:00
parent cedc6b6c10
commit d1e1ae9f59
7 changed files with 85 additions and 19 deletions

View File

@@ -363,7 +363,7 @@ ImageDocument::SetScriptGlobalObject(nsIScriptGlobalObject* aScriptGlobalObject)
// Set the script global object on the superclass before doing
// anything that might require it....
nsHTMLDocument::SetScriptGlobalObject(aScriptGlobalObject);
MediaDocument::SetScriptGlobalObject(aScriptGlobalObject);
if (aScriptGlobalObject) {
if (!GetRootElement()) {