rem: if (status == -1) { /* UnableToCapture */ window.alert(strings.getAttribute("UnableToCapture")); } else if (status == 0) { /* Captured */ window.alert(strings.getAttribute("Captured")); } else if (status == +1) { /* NotCaptured */ window.alert(strings.getAttribute("NotCaptured")); } 
context: function WalletAction( action ) {  var strings = document.getElementById("personalManagers");  if (action == "password" || action == "expire" || action == "clear") {    wallet = Components.classes['component://netscape/wallet/wallet-service'];    wallet = wallet.getService();    wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);    if (action == "password") {      if (!wallet.WALLET_ChangePassword()) {        window.alert(strings.getAttribute("PasswordNotChanged"));      }    } else if (action == "expire") {      if (wallet.WALLET_ExpirePassword()) {        window.alert(strings.getAttribute("PasswordExpired"));      } else {        window.alert(strings.getAttribute("PasswordNotExpired"));      }    } else if (action == "clear") {      if (window.confirm(strings.getAttribute("AllDataWillBeCleared"))) {        wallet.WALLET_DeleteAll();      }    }    return;  }  if (action == "encrypt" || action == "obscure") {    wallet = Components.classes['component://netscape/wallet/wallet-service'];    wallet = wallet.getService();    wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);    wallet.WALLET_InitReencryptCallback(window._content);    if (action == "encrypt") {      this.pref.SetBoolPref("wallet.crypto", true);    } else if (action == "obscure") {      this.pref.SetBoolPref("wallet.crypto", false);    }    return;  }  if (action == "cookieAllow" || action == "cookieBlock" ||      action == "imageAllow" || action == "imageBlock") {    var cookieViewer =      Components.classes["component://netscape/cookieviewer/cookieviewer-world"]        .createInstance(Components.interfaces["nsICookieViewer"]);    COOKIEPERMISSION = 0;    IMAGEPERMISSION = 1;    var element;    if (action == "cookieAllow") {      cookieViewer.AddPermission(window._content, true, COOKIEPERMISSION);      element = document.getElementById("AllowCookies");      alert(element.getAttribute("msg"));    } else if (action == "cookieBlock") {      cookieViewer.AddPermission(window._content, false, COOKIEPERMISSION);      element = document.getElementById("BlockCookies");      alert(element.getAttribute("msg"));    } else if (action == "imageAllow") {      cookieViewer.AddPermission(window._content, true, IMAGEPERMISSION);      element = document.getElementById("AllowImages");      alert(element.getAttribute("msg"));    } else if (action == "imageBlock") {      cookieViewer.AddPermission(window._content, false, IMAGEPERMISSION);      element = document.getElementById("BlockImages");      alert(element.getAttribute("msg"));    }    return;  }  if( appCore ) {    switch( action ) {      case "safefill":        if (appCore.walletPreview(window, window._content)) {          window.alert(strings.getAttribute("noPrefills"));        }        break;//    case "password"://      appCore.walletChangePassword();//      break;      case "quickfill":         if (appCore.walletQuickFillin(window._content)) {          window.alert(strings.getAttribute("noPrefills"));        }        break;      case "capture":      default:        status = appCore.walletRequestToCapture(window._content);        if (status == -1) { /* UnableToCapture */          window.alert(strings.getAttribute("UnableToCapture"));        } else if (status == 0) { /* Captured */          window.alert(strings.getAttribute("Captured"));        } else if (status == +1) { /* NotCaptured */          window.alert(strings.getAttribute("NotCaptured"));        }        break;    }  }}  
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d6c6d655cc04f31f568b6b0bdfce46de1962dbf/tasksOverlay.js/clean/xpfe/communicator/resources/content/tasksOverlay.js