rem: { 
add: { bundle = srGetStrBundle("chrome:  dialog                = new Object; dialog.input          = document.getElementById("dialog.input"); dialog.help           = document.getElementById("dialog.help"); dialog.open           = document.getElementById("ok"); dialog.openAppList    = document.getElementById("openAppList"); dialog.openTopWindow  = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementById("editWindow");  browser = window.arguments[0]; if (!browser) {  dialog.openAppList.selectedItem = dialog.openEditWindow; dialog.openTopWindow.setAttribute("disabled", "true"); } else { dialog.openAppList.selectedItem = dialog.openTopWindow; }   dialog.open.setAttribute("value", bundle.GetStringFromName("openButtonLabel")); 
context: function onLoad()   {    bundle = srGetStrBundle( "chrome://navigator/locale/openLocation.properties" );    	dialog                = new Object;  	dialog.input          = document.getElementById( "dialog.input" );  	dialog.help           = document.getElementById( "dialog.help" );    dialog.open           = document.getElementById( "ok" );    dialog.openAppList    = document.getElementById( "openAppList" );    dialog.openTopWindow  = document.getElementById( "currentWindow" );    dialog.openEditWindow = document.getElementById( "editWindow" );      	browser = window.arguments[0];      if ( !browser )       {        // No browser supplied - we are calling from Composer        dialog.openAppList.selectedItem = dialog.openEditWindow;        dialog.openTopWindow.setAttribute("disabled", "true");      }     else      dialog.openAppList.selectedItem = dialog.openTopWindow;      // change OK button text to 'open'    dialog.open.setAttribute("value", bundle.GetStringFromName( "openButtonLabel" ));  	doSetOKCancel(open, 0, 0, 0);      doEnabling();      	/* Give input field the focus. */  	dialog.input.focus();    }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0104aa87fa4b667a3aed980a8ef930929d78c03/openLocation.js/buggy/xpfe/browser/resources/content/openLocation.js