rem: document.getElementById("ok").disabled = false; document.getElementById("cancel").disabled = true; 
add: document.documentElement.getButton("accept").disabled = false; document.documentElement.getButton("cancel").disabled = true; document.documentElement.getButton("accept").focus(); 
context:     onStateChange: function( aIndex, aState, aValue )    {        const state = Components.interfaces.nsIXPIProgressDialog;        var status = document.getElementById("status"+aIndex);        var progress = document.getElementById("progress"+aIndex);        switch( aState ) {        case state.DOWNLOAD_START:            status.setAttribute("value",                        gBundle.getString("progress.downloading"));            progress.setAttribute("value","0%");            break;        case state.DOWNLOAD_DONE:            status.setAttribute("value",                        gBundle.getString("progress.downloaded"));            progress.setAttribute("value","100%");            break;        case state.INSTALL_START:            status.setAttribute("value",                        gBundle.getString("progress.installing"));            progress.setAttribute("mode","undetermined");            break;        case state.INSTALL_DONE:            progress.setAttribute("mode","determined");            progress.hidden = true;            var msg;            try            {                msg = gBundle.getString("error"+aValue);            }            catch (e)            {                msg = gBundle.stringBundle.formatStringFromName(                        "unknown.error", [aValue], 1 );            }            status.setAttribute("value",msg);            break;        case state.DIALOG_CLOSE:            // nsXPInstallManager is done with us, but we'll let users            // dismiss the dialog themselves so they can see the status            // (unless we're closing because the user cancelled)            document.getElementById("ok").disabled = false;            document.getElementById("cancel").disabled = true;            gCanClose = true;            if (gCancelled)                window.close();            break;        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/05284152780705cba19d5f8820b704f477482e7e/xpistatus.js/clean/xpinstall/res/content/xpistatus.js