rem: if (pref.GetBoolPref("wallet.phonePanel.hide")) { 
add: if (pref.getBoolPref("wallet.phonePanel.hide")) { 
context:     onload:      function() {        walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance();        walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor);        walletServiceInterface = Components.classes['@mozilla.org/wallet/wallet-service;1'];        walletServiceInterface = walletServiceInterface.getService();        walletServiceInterface = walletServiceInterface.QueryInterface(Components.interfaces.nsIWalletService);        bundle = srGetStrBundle(JS_STRINGS_FILE); /* initialize string bundle */        if (!EncryptionTest()) {          dump("*** user failed to unlock the database\n");          return;        }        if (!FetchInput()) {          dump("*** user failed to unlock the database\n");          return;        }        doSetOKCancel(this.onOK, this.onCancel);        // allow l10n to hide certain panels        var pref;        pref = Components.classes['@mozilla.org/preferences;1'];        pref = pref.getService();        pref = pref.QueryInterface(Components.interfaces.nsIPref);        var panel;        try {          if (pref.GetBoolPref("wallet.namePanel.hide")) {            panel = document.getElementById("pnameID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("snameID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("bnameID");            panel.setAttribute("style", "display:none;");          }          if (pref.GetBoolPref("wallet.addressPanel.hide")) {            panel = document.getElementById("paddressID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("saddressID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("baddressID");            panel.setAttribute("style", "display:none;");          }          if (pref.GetBoolPref("wallet.phonePanel.hide")) {            panel = document.getElementById("pphoneID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("sphoneID");            panel.setAttribute("style", "display:none;");            panel = document.getElementById("bphoneID");            panel.setAttribute("style", "display:none;");          }          if (pref.GetBoolPref("wallet.creditPanel.hide")) {            panel = document.getElementById("pcreditID");            panel.setAttribute("style", "display:none;");          }          if (pref.GetBoolPref("wallet.employPanel.hide")) {            panel = document.getElementById("pemployID");            panel.setAttribute("style", "display:none;");          }          if (pref.GetBoolPref("wallet.miscPanel.hide")) {            panel = document.getElementById("pmiscID");            panel.setAttribute("style", "display:none;");          }        } catch(e) {          // error -- stop hiding if prefs are missing        }      },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/WalletViewer.js/clean/extensions/wallet/editor/WalletViewer.js