"sss%ip",
"svs%ip",
 NS_IMETHODIMP nsCommonDialogs::DoDialog(nsIDOMWindow* inParent, nsIDialogParamBlock *ioParamBlock, const char *inChromeURL) {  nsresult rv = NS_OK;    if ( inParent && ioParamBlock &&inChromeURL )    {        // Get JS context from parent window.        nsCOMPtr<nsIScriptGlobalObject> sgo = do_QueryInterface( inParent, &rv );        if ( NS_SUCCEEDED( rv ) && sgo )        {            nsCOMPtr<nsIScriptContext> context;            sgo->GetContext( getter_AddRefs( context ) );            if ( context )            {                JSContext *jsContext = (JSContext*)context->GetNativeContext();                if ( jsContext ) {                    void *stackPtr;                    jsval *argv = JS_PushArguments( jsContext,                                                    &stackPtr,                                                    "sss%ip",                                                    inChromeURL,                                                    "_blank",                                                    "centerscreen,chrome,modal",                                                    (const nsIID*)(&NS_GET_IID(nsIDialogParamBlock)),                                                    (nsISupports*)ioParamBlock                                                  );                    if ( argv ) {                        nsCOMPtr<nsIDOMWindow> newWindow;                        rv = inParent->OpenDialog( jsContext, argv, 4, getter_AddRefs(newWindow) );                        JS_PopArguments( jsContext, stackPtr );                    }                    else                    {                    	                        NS_WARNING( "JS_PushArguments failed\n" );                        rv = NS_ERROR_FAILURE;                    }                }                else                {                    NS_WARNING(" GetNativeContext failed\n" );                    rv = NS_ERROR_FAILURE;                }            }            else            {                NS_WARNING( "GetContext failed\n" );                rv = NS_ERROR_FAILURE;            }        }        else        {            NS_WARNING( "QueryInterface (for nsIScriptGlobalObject) failed \n" );        }    }    else    {        NS_WARNING( " OpenDialogWithArg was passed a null pointer!\n" );        rv = NS_ERROR_NULL_POINTER;    }    return rv; }