diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index a1e8aad52e29..1273ad4d9303 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -3623,7 +3623,7 @@ nsXULDocument::OnStreamComplete(nsIStreamLoader* aLoader, nsresult -nsXULDocument::ExecuteScript(nsIScriptContext * aContext, void * aScriptObject) +nsXULDocument::ExecuteScript(nsIScriptContext * aContext, JSScript* aScriptObject) { NS_PRECONDITION(aScriptObject != nsnull && aContext != nsnull, "null ptr"); if (! aScriptObject || ! aContext) diff --git a/content/xul/document/src/nsXULDocument.h b/content/xul/document/src/nsXULDocument.h index cbfe2e447d8e..dd83f06895f3 100644 --- a/content/xul/document/src/nsXULDocument.h +++ b/content/xul/document/src/nsXULDocument.h @@ -396,7 +396,7 @@ protected: * Execute the precompiled script object scoped by this XUL document's * containing window object, and using its associated script context. */ - nsresult ExecuteScript(nsIScriptContext *aContext, void* aScriptObject); + nsresult ExecuteScript(nsIScriptContext *aContext, JSScript* aScriptObject); /** * Helper method for the above that uses aScript to find the appropriate