rem: document.getElementById('alertImage').setAttribute('src', window.arguments[0]); document.getElementById('alertTitleLabel').setAttribute('value', window.arguments[1]); document.getElementById('alertTextLabel').setAttribute('value', window.arguments[2]); gAlertTextClickable = window.arguments[3]; gAlertCookie = window.arguments[4];  if (gAlertTextClickable) document.getElementById('alertTextLabel').setAttribute('clickable', true);   gAlertListener = window.arguments[5]; 
add: switch (window.arguments.length) { default: case 7: gAlertListener = window.arguments[6]; case 6: gOrigin = window.arguments[5]; case 5: gAlertCookie = window.arguments[4]; case 4: gAlertTextClickable = window.arguments[3]; if (gAlertTextClickable) document.getElementById('alertTextLabel').setAttribute('clickable', true); case 3: document.getElementById('alertTextLabel').setAttribute('value', window.arguments[2]); case 2: document.getElementById('alertTitleLabel').setAttribute('value', window.arguments[1]); case 1: document.getElementById('alertImage').setAttribute('src', window.arguments[0]); case 0: break; } 
context: function prefillAlertInfo(){  // unwrap all the args....  // arguments[0] --> the image src url  // arguments[1] --> the alert title  // arguments[2] --> the alert text  // arguments[3] --> is the text clickable?   // arguments[4] --> the alert cookie to be passed back to the listener  // arguments[5] --> an optional callback listener (nsIObserver)  document.getElementById('alertImage').setAttribute('src', window.arguments[0]);  document.getElementById('alertTitleLabel').setAttribute('value', window.arguments[1]);  document.getElementById('alertTextLabel').setAttribute('value', window.arguments[2]);  gAlertTextClickable = window.arguments[3];  gAlertCookie = window.arguments[4];  if (gAlertTextClickable)    document.getElementById('alertTextLabel').setAttribute('clickable', true);    // the 5th argument is optional  gAlertListener = window.arguments[5];}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a33c51bdb11f05fea1974a8818497a1453a1973a/alert.js/buggy/toolkit/components/alerts/resources/content/alert.js