*/
FinalizeWindow(JSContext *cx, JSObject *obj){  nsIWebWidget *window = (nsIWebWidget*)JS_GetPrivate(cx, obj);  if (nsnull != window) {    // get the js object    nsIScriptObjectOwner *owner = nsnull;    if (NS_OK == window->QueryInterface(kIScriptObjectOwnerIID, (void**)&owner)) {      owner->ResetScriptObject();      NS_RELEASE(owner);    }  }}