mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Bug #51921 --> create a secure UI instance to monitor the lock status in the
mail window. sr=bienvenu
This commit is contained in:
parent
e1d9a0bf74
commit
af5244bdee
@ -23,6 +23,8 @@ var messengerContractID = "@mozilla.org/messenger;1";
|
||||
var statusFeedbackContractID = "@mozilla.org/messenger/statusfeedback;1";
|
||||
var messageViewContractID = "@mozilla.org/messenger/messageview;1";
|
||||
var mailSessionContractID = "@mozilla.org/messenger/services/session;1";
|
||||
var secureUIContractID = "@mozilla.org/secure_browser_ui;1";
|
||||
|
||||
|
||||
var prefContractID = "@mozilla.org/preferences;1";
|
||||
var msgWindowContractID = "@mozilla.org/messenger/msgwindow;1";
|
||||
@ -102,6 +104,19 @@ function CreateMailWindowGlobals()
|
||||
statusFeedback = Components.classes[statusFeedbackContractID].createInstance();
|
||||
statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);
|
||||
|
||||
// try to create and register ourselves with a security icon...
|
||||
var securityIcon = document.getElementById("security-button");
|
||||
if (securityIcon)
|
||||
{
|
||||
var secureUI = Components.classes[secureUIContractID].createInstance();
|
||||
// we may not have a secure UI if psm isn't installed!
|
||||
if (secureUI)
|
||||
{
|
||||
secureUI = secureUI.QueryInterface(Components.interfaces.nsSecureBrowserUI);
|
||||
secureUI.init(_content, securityIcon);
|
||||
}
|
||||
}
|
||||
|
||||
window.MsgWindowCommands = new nsMsgWindowCommands();
|
||||
//Create message view object
|
||||
messageView = Components.classes[messageViewContractID].createInstance();
|
||||
|
Loading…
x
Reference in New Issue
Block a user