add: window.crypto.enableSmartCardEvents = true; document.addEventListener("smartcard-insert", onSmartCardChange, false); document.addEventListener("smartcard-remove", onSmartCardChange, false); if (!gSMIMEBundle) gSMIMEBundle = document.getElementById("bundle_read_smime");  
context: function msgHdrViewSMIMEOnLoad(event){  // we want to register our security header sink as an opaque nsISupports  // on the msgHdrSink used by mail.....  msgWindow.msgHeaderSink.securityInfo = smimeHeaderSink;  gSignedUINode = document.getElementById('signedHdrIcon');  gEncryptedUINode = document.getElementById('encryptedHdrIcon');  gSMIMEContainer = document.getElementById('smimeBox');  gStatusBar = document.getElementById('status-bar');  // add ourself to the list of message display listeners so we get notified when we are about to display a  // message.  var listener = {};  listener.onStartHeaders = onSMIMEStartHeaders;  listener.onEndHeaders = onSMIMEEndHeaders;  gMessageListeners.push(listener);  gEncryptedURIService =     Components.classes["@mozilla.org/messenger-smime/smime-encrypted-uris-service;1"]    .getService(Components.interfaces.nsIEncryptedSMIMEURIsService);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/db871aeb76393ec772fd57b5f796d1905cd866d0/msgHdrViewSMIMEOverlay.js/buggy/mail/extensions/smime/content/msgHdrViewSMIMEOverlay.js