亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? msgcompsmimeoverlay.js

?? 現在很火的郵件客戶端軟件thunderbird的源碼
?? JS
字號:
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- *//* * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is mozilla.org code. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1998-2001 * the Initial Developer. All Rights Reserved. * * Contributor(s): *   ddrinan@netscape.com *   Scott MacGreogr <mscott@netscape.com> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */const gISMimeCompFields = Components.interfaces.nsIMsgSMIMECompFields;const gSMimeCompFieldsContractID = "@mozilla.org/messenger-smime/composefields;1";const gSMimeContractID = "@mozilla.org/messenger-smime/smimejshelper;1";const gISMimeJSHelper = Components.interfaces.nsISMimeJSHelper;var gNextSecurityButtonCommand = "";var gBundle;var gBrandBundle;var gSMFields;var gEncryptedURIService = null;function onComposerClose(){  gSMFields = null;  setNoEncryptionUI();  setNoSignatureUI();  if (!gMsgCompose)    return;  if (!gMsgCompose.compFields)    return;  gMsgCompose.compFields.securityInfo = null;}function onComposerReOpen(){  // are we already set up?  if (gSMFields)    return;  if (!gMsgCompose)    return;  if (!gMsgCompose.compFields)    return;  gMsgCompose.compFields.securityInfo = null;  gSMFields = Components.classes[gSMimeCompFieldsContractID].createInstance(gISMimeCompFields);  if (gSMFields)  {    gMsgCompose.compFields.securityInfo = gSMFields;    // set up the intial security state....    var encryptionPolicy = gCurrentIdentity.getIntAttribute("encryptionpolicy");    // 0 == never, 1 == if possible, 2 == always Encrypt.    gSMFields.requireEncryptMessage = encryptionPolicy == 2;    gSMFields.signMessage = gCurrentIdentity.getBoolAttribute("sign_mail");    if (gEncryptedURIService && !gSMFields.requireEncryptMessage)    {      if (gEncryptedURIService.isEncrypted(gMsgCompose.originalMsgURI))      {        // Override encryption setting if original is known as encrypted.        gSMFields.requireEncryptMessage = true;      }    }    if (gSMFields.requireEncryptMessage)    {      setEncryptionUI();    }    else    {      setNoEncryptionUI();    }    if (gSMFields.signMessage)    {      setSignatureUI();    }    else    {      setNoSignatureUI();    }  }}// this function gets called multiple times,// but only on first open, not on composer recyclingfunction smimeComposeOnLoad(){  if (!gEncryptedURIService)  {    gEncryptedURIService =       Components.classes["@mozilla.org/messenger-smime/smime-encrypted-uris-service;1"]      .getService(Components.interfaces.nsIEncryptedSMIMEURIsService);  }  onComposerReOpen();}function setupBundles(){  if (gBundle && gBrandBundle)    return;    if (!gBundle) {    gBundle = document.getElementById("bundle_comp_smime");    gBrandBundle = document.getElementById("bundle_brand");  }}// stub routine to make our call to MsgAccountManager work correctlyfunction GetSelectedFolderURI(){  return;}function GetServer(uri){  var servers = gAccountManager.GetServersForIdentity(gCurrentIdentity);  return servers.QueryElementAt(0, Components.interfaces.nsIMsgIncomingServer);}function showNeedSetupInfo(){  var ifps = Components.interfaces.nsIPromptService;  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();  promptService = promptService.QueryInterface(ifps);  setupBundles();  if (promptService && gBundle && gBrandBundle) {    var dummy = new Object;    var buttonPressed =    promptService.confirmEx(window,      gBrandBundle.getString("brandShortName"),      gBundle.getString("NeedSetup"),       (ifps.BUTTON_POS_0 * ifps.BUTTON_TITLE_YES       + ifps.BUTTON_POS_1 * ifps.BUTTON_TITLE_NO),      0,      0,      0,      null,      dummy);        if (0 == buttonPressed) {      MsgAccountManager('am-smime.xul');    }  }}function noEncryption(){  if (!gSMFields)    return;  gSMFields.requireEncryptMessage = false;  setNoEncryptionUI();}function encryptMessage(){  if (!gSMFields)    return;    var encryptionCertName = gCurrentIdentity.getUnicharAttribute("encryption_cert_name");  if (!encryptionCertName)   {    gSMFields.requireEncryptMessage = false;    setNoEncryptionUI();    showNeedSetupInfo();    return;  }  gSMFields.requireEncryptMessage = true;  setEncryptionUI();}function signMessage(){   if (!gSMFields)    return;  // toggle  gSMFields.signMessage = !gSMFields.signMessage;  if (gSMFields.signMessage) // make sure we have a cert name...  {    var signingCertName = gCurrentIdentity.getUnicharAttribute("signing_cert_name");    if (!signingCertName)    {      gSMFields.signMessage = false;      showNeedSetupInfo();      return;    }    setSignatureUI();  }  else  {    setNoSignatureUI();  }}function setSecuritySettings(menu_id){   if (!gSMFields)    return;  document.getElementById("menu_securityEncryptRequire" + menu_id).setAttribute("checked", gSMFields.requireEncryptMessage);  document.getElementById("menu_securityNoEncryption" + menu_id).setAttribute("checked", !gSMFields.requireEncryptMessage);  document.getElementById("menu_securitySign" + menu_id).setAttribute("checked", gSMFields.signMessage);}function setNextCommand(what){  gNextSecurityButtonCommand = what;}function doSecurityButton(){  var what = gNextSecurityButtonCommand;  gNextSecurityButtonCommand = "";  switch (what)  {    case "noEncryption":      noEncryption();      break;        case "encryptMessage":      encryptMessage();      break;        case "signMessage":      signMessage();      break;        case "show":    default:      showMessageComposeSecurityStatus();      break;  }}function setNoSignatureUI(){  top.document.getElementById("securityStatus").removeAttribute("signing");  top.document.getElementById("signing-status").collapsed = true;}function setSignatureUI(){  top.document.getElementById("securityStatus").setAttribute("signing", "ok");  top.document.getElementById("signing-status").collapsed = false;}function setNoEncryptionUI(){  top.document.getElementById("securityStatus").removeAttribute("crypto");  top.document.getElementById("encryption-status").collapsed = true;}function setEncryptionUI(){  top.document.getElementById("securityStatus").setAttribute("crypto", "ok");  top.document.getElementById("encryption-status").collapsed = false;}function showMessageComposeSecurityStatus(){  Recipients2CompFields(gMsgCompose.compFields);  var encryptionCertName = gCurrentIdentity.getUnicharAttribute("encryption_cert_name");  var signingCertName = gCurrentIdentity.getUnicharAttribute("signing_cert_name");    window.openDialog('chrome://messenger-smime/content/msgCompSecurityInfo.xul',    '',    'chrome,resizable=1,modal=1,dialog=1',     {      compFields : gMsgCompose.compFields,      subject : GetMsgSubjectElement().value,      smFields : gSMFields,      isSigningCertAvailable : (signingCertName.length > 0),      isEncryptionCertAvailable : (encryptionCertName.length > 0),      currentIdentity : gCurrentIdentity    }  );}var SecurityController ={  supportsCommand: function(command)  {    switch ( command )    {      case "cmd_viewSecurityStatus":        return true;            default:        return false;     }  },  isCommandEnabled: function(command)  {    switch ( command )    {      case "cmd_viewSecurityStatus":      {        return true;      }      default:        return false;    }    return false;  }};function onComposerSendMessage(){  try {    if (!gMsgCompose.compFields.securityInfo.requireEncryptMessage) {      return;    }    var helper = Components.classes[gSMimeContractID].createInstance(gISMimeJSHelper);    var emailAddresses = new Object();    var missingCount = new Object();    helper.getNoCertAddresses(      gMsgCompose.compFields,      missingCount,      emailAddresses);  }  catch (e)  {    return;  }  if (missingCount.value > 0)  {    var prefService =      Components.classes["@mozilla.org/preferences-service;1"]        .getService(Components.interfaces.nsIPrefService);    var prefs = prefService.getBranch(null);    var autocompleteLdap = false;    autocompleteLdap = prefs.getBoolPref("ldap_2.autoComplete.useDirectory");    if (autocompleteLdap)    {      var autocompleteDirectory = null;      autocompleteDirectory = prefs.getCharPref(        "ldap_2.autoComplete.directoryServer");      if(gCurrentIdentity.overrideGlobalPref) {        autocompleteDirectory = gCurrentIdentity.directoryServer;      }      if (autocompleteDirectory)      {        window.openDialog('chrome://messenger-smime/content/certFetchingStatus.xul',          '',          'chrome,resizable=1,modal=1,dialog=1',           autocompleteDirectory,          emailAddresses.value        );      }    }  }}function onComposerFromChanged(){  if (!gSMFields)    return;  // In order to provide maximum protection to the user:  // - If encryption is already enabled, we will not turn it off automatically.  // - If encryption is not enabled, but the new account defaults to encryption, we will turn it on.  // - If signing is disabled, we will not turn it on automatically.  // - If signing is enabled, but the new account defaults to not sign, we will turn signing off.  if (!gSMFields.requireEncryptMessage)  {    var encryptionPolicy = gCurrentIdentity.getIntAttribute("encryptionpolicy");    // 0 == never, 1 == if possible, 2 == always Encrypt.    if (encryptionPolicy == 2)    {      gSMFields.requireEncryptMessage = true;      setEncryptionUI();    }  }  if (gSMFields.signMessage)  {    var signMessage = gCurrentIdentity.getBoolAttribute("sign_mail");        if (!signMessage)    {      gSMFields.signMessage = false;      setNoSignatureUI();    }  }}top.controllers.appendController(SecurityController);addEventListener('compose-window-close', onComposerClose, true);addEventListener('compose-window-reopen', onComposerReOpen, true);addEventListener('compose-send-message', onComposerSendMessage, true);addEventListener('compose-from-changed', onComposerFromChanged, true);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区在线| 欧美精品一二三| 99久久国产综合精品麻豆| 在线一区二区三区四区| 亚洲一区二区三区中文字幕| 美女国产一区二区| 69精品人人人人| 精品国产麻豆免费人成网站| 欧美性做爰猛烈叫床潮| 国产精品久久久久影院亚瑟| 精品影院一区二区久久久| 欧美午夜影院一区| 亚洲色图视频免费播放| 成人精品小蝌蚪| 久久精品这里都是精品| 九色综合狠狠综合久久| 91精品国产综合久久福利软件| 亚洲你懂的在线视频| eeuss影院一区二区三区| 欧美精品一区二区三区很污很色的| 亚洲v中文字幕| 欧美日韩精品欧美日韩精品一综合| 免费在线一区观看| 51精品久久久久久久蜜臀| 亚洲综合在线第一页| 在线一区二区三区做爰视频网站| 亚洲精品你懂的| 色999日韩国产欧美一区二区| 中文字幕免费不卡| av一二三不卡影片| 樱花草国产18久久久久| 欧美这里有精品| 亚洲午夜精品网| 欧美日本国产一区| 日韩中文字幕一区二区三区| 91麻豆精品国产自产在线观看一区 | 91一区二区三区在线观看| 久久久精品国产免费观看同学| 蜜桃精品在线观看| 久久久影视传媒| av资源站一区| 丝瓜av网站精品一区二区| 欧美视频在线不卡| 视频一区视频二区中文| www亚洲一区| 国产精品亚洲人在线观看| 国产精品视频你懂的| 99精品视频一区| 亚洲成在线观看| 欧美xxxxxxxx| 不卡的电视剧免费网站有什么| 亚洲欧美偷拍卡通变态| 亚洲啪啪综合av一区二区三区| 欧美天堂一区二区三区| 老司机午夜精品| 综合久久一区二区三区| 777xxx欧美| 成人性生交大片| 午夜视频在线观看一区二区三区| 欧美sm极限捆绑bd| 92精品国产成人观看免费| 亚洲国产裸拍裸体视频在线观看乱了 | 本田岬高潮一区二区三区| 一区二区三区四区蜜桃| 日韩久久久久久| 97超碰欧美中文字幕| 男女激情视频一区| 自拍偷拍国产精品| 日韩一级视频免费观看在线| 大美女一区二区三区| 亚洲国产精品久久人人爱蜜臀 | 国产精品理论在线观看| 欧美日韩在线直播| 国产盗摄一区二区| 91免费在线视频观看| 秋霞电影网一区二区| 国产精品电影一区二区三区| 91精品国产福利| 91小视频免费观看| 国产一区二区三区四| 视频在线在亚洲| 亚洲图片激情小说| 国产欧美综合在线| 欧美成人在线直播| 欧美午夜一区二区| 色综合天天综合狠狠| 国产suv精品一区二区883| 免费久久99精品国产| 亚洲一二三级电影| 亚洲色图丝袜美腿| 国产精品美女视频| 久久亚洲一区二区三区明星换脸| 欧美二区在线观看| 欧美亚洲动漫精品| 色欧美乱欧美15图片| 91免费看视频| 91亚洲精品久久久蜜桃网站| 国产乱理伦片在线观看夜一区| 久久成人免费电影| 日本欧美大码aⅴ在线播放| 亚洲福利一区二区三区| 亚洲欧美在线观看| 欧美激情综合五月色丁香| 精品久久国产97色综合| 日韩一区二区三区电影在线观看| 欧美日韩免费在线视频| 欧美艳星brazzers| 欧美日韩亚洲综合一区二区三区| 色欧美日韩亚洲| 91国偷自产一区二区三区成为亚洲经典| 国产iv一区二区三区| 国产成人精品1024| 丁香网亚洲国际| 成人午夜在线免费| av综合在线播放| 日本道在线观看一区二区| 91亚洲大成网污www| 91亚洲资源网| 在线免费不卡视频| 欧美日产国产精品| 日韩欧美中文字幕精品| 欧美xxxx老人做受| 中文在线一区二区| 亚洲三级在线播放| 亚洲一区二区三区四区的| 无码av中文一区二区三区桃花岛| 免费欧美日韩国产三级电影| 久久国产精品99久久久久久老狼| 国产精品一区二区久久不卡 | 精品在线一区二区三区| 国产麻豆视频精品| 91色|porny| 91麻豆精品久久久久蜜臀| 久久综合国产精品| 国产精品黄色在线观看| 亚洲一区国产视频| 麻豆国产精品777777在线| 国产福利不卡视频| 日本韩国欧美一区| 欧美tk丨vk视频| 亚洲青青青在线视频| 毛片一区二区三区| 97aⅴ精品视频一二三区| 欧美日本一区二区| 中文在线一区二区| 日韩电影在线一区二区三区| 国产一区二区三区日韩| 在线影院国内精品| 久久人人爽人人爽| 亚洲成人激情自拍| 不卡的看片网站| 欧美一区二区三区免费视频 | 不卡的电视剧免费网站有什么| 欧美日韩一区精品| 久久精品视频在线看| 亚洲午夜一区二区| 国产成人福利片| 欧美一区2区视频在线观看| 国产亚洲va综合人人澡精品 | 欧美欧美午夜aⅴ在线观看| 久久免费视频色| 日韩在线一区二区三区| 成人黄色a**站在线观看| 日韩一二三区视频| 亚洲黄色片在线观看| 国产高清不卡二三区| 欧美日韩mp4| 亚洲欧美色图小说| 国产精品88av| 欧美一区二区性放荡片| 亚洲免费观看视频| 国产精品77777竹菊影视小说| 在线播放中文字幕一区| 亚洲欧美日韩国产另类专区| 国产一区二区三区在线观看免费| 欧美美女黄视频| 亚洲免费在线观看视频| 成人免费毛片片v| 久久免费电影网| 久久99精品久久久久婷婷| 在线电影院国产精品| 一区二区三区不卡视频在线观看| 国产成人av资源| 久久久久久久久久久久久女国产乱| 日一区二区三区| 欧美日韩精品欧美日韩精品| 一区二区三区91| 91国产免费观看| 一区二区三区毛片| 91国偷自产一区二区开放时间 | 国产一区二区三区国产| 91精品国产综合久久香蕉麻豆| 亚洲一区在线观看网站| 色综合久久久久久久| 亚洲人成人一区二区在线观看| 成人听书哪个软件好| 国产精品情趣视频| 不卡一区中文字幕| 亚洲欧洲另类国产综合| 91蝌蚪porny九色|