rem: ["unknown", "notSet", "mediaImg", "mediaBGImg", "mediaApplet", "mediaObject", "mediaEmbed", "mediaLink", "mediaInput", "formTitle", "formUntitled", "formDefaultTarget", "formChecked", "formUnchecked", "formPassword", "linkAnchor", "linkArea", "linkSubmission", "linkSubmit", "linkRel", "linkStylesheet", "linkRev", "linkX", "yes"].map(function(n) { gStrings[n] = gBundle.getString(n); }); 
add: var strNames = ["unknown", "notSet", "mediaImg", "mediaBGImg", "mediaApplet", "mediaObject", "mediaEmbed", "mediaLink", "mediaInput", "formTitle", "formUntitled", "formDefaultTarget", "formChecked", "formUnchecked", "formPassword", "linkAnchor", "linkArea", "linkSubmission", "linkSubmit", "linkRel", "linkStylesheet", "linkRev", "linkX", "linkScript", "linkScriptInline", "yes"]; strNames.forEach(function(n) { gStrings[n] = gBundle.getString(n); }); 
context: function onLoadPageInfo(){  gBundle = document.getElementById("pageinfobundle");  ["unknown", "notSet", "mediaImg", "mediaBGImg", "mediaApplet", "mediaObject",   "mediaEmbed", "mediaLink", "mediaInput", "formTitle", "formUntitled",   "formDefaultTarget", "formChecked", "formUnchecked", "formPassword",   "linkAnchor", "linkArea", "linkSubmission", "linkSubmit", "linkRel",   "linkStylesheet", "linkRev", "linkX", "yes"].map(function(n) { gStrings[n] = gBundle.getString(n); });  if ("arguments" in window && window.arguments.length >= 1 &&       window.arguments[0] && window.arguments[0].doc) {    gDocument = window.arguments[0].doc;    gWindow = gDocument.defaultView;  }  else {    if ("gBrowser" in window.opener)      gWindow = window.opener.gBrowser.contentWindow;    else      gWindow = window.opener.frames[0];    gDocument = gWindow.document;  }  var titleFormat = gWindow != gWindow.top ? "pageInfo.frame.title"                                           : "pageInfo.page.title";  document.title = gBundle.getFormattedString(titleFormat, [gDocument.location]);  document.getElementById("main-window").setAttribute("relatedUrl", gDocument.location);  // do the easy stuff first  makeGeneralTab();  // init views  function initView(treeid, view)  {    document.getElementById(treeid).view = view;  }  initView("imagetree", gImageView);  initView("formtree", gFormView);  initView("formpreview", gFieldView);  initView("linktree", gLinkView);  // and then the hard stuff  makeTabs(gDocument, gWindow);  initFeedTab();  onLoadPermission();  /* Call registered overlay init functions */  onLoadRegistry.map(function(func) { func(); });  /* Select the requested tab, if the name is specified */  var initialTab = "general";  if ("arguments" in window && window.arguments.length >= 1 &&       window.arguments[0] && window.arguments[0].initialTab)    initialTab = window.arguments[0].initialTab;  var radioGroup = document.getElementById("viewGroup");  initialTab = document.getElementById(initialTab + "Tab") || document.getElementById("generalTab");  radioGroup.selectedItem = initialTab;  radioGroup.selectedItem.doCommand();  radioGroup.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/8cb5a11221af1f3bc2c3cc3a6d400286b07b25f1/pageInfo.js/buggy/suite/browser/pageinfo/pageInfo.js