@@ -214,32 +214,48 @@ const StatusLine = Module("statusline", {
214214 } ) ;
215215 statusline . addField ( "ssl" , "The currently SSL status" , "liberator-status-ssl" ,
216216 function updateSSLState ( node , state ) {
217- var className = "" ;
217+ var className = "notSecure" ;
218+ var tooltip = gNavigatorBundle . getString ( "identity.unknown.tooltip" ) ;
218219 if ( ! state ) {
219220 let securityUI = config . tabbrowser . securityUI ;
220221 if ( securityUI )
221222 state = securityUI . state || 0 ;
222223 }
223224 const WPL = Components . interfaces . nsIWebProgressListener ;
224- if ( state & WPL . STATE_IDENTITY_EV_TOPLEVEL )
225+ if ( state & WPL . STATE_IDENTITY_EV_TOPLEVEL ) {
225226 className = "verifiedIdentity" ;
226- else if ( state & WPL . STATE_IS_SECURE )
227+ if ( state & WPL . STATE_BLOCKED_MIXED_ACTIVE_CONTENT )
228+ className = "mixedActiveBlocked" ;
229+ tooltip = gNavigatorBundle . getFormattedString (
230+ "identity.identified.verifier" ,
231+ [ gIdentityHandler . getIdentityData ( ) . caOrg ] ) ;
232+ } else if ( state & WPL . STATE_IS_SECURE ) {
227233 className = "verifiedDomain" ;
228- else if ( state & WPL . STATE_IS_BROKEN ) {
229- if ( ( state & WPL . STATE_LOADED_MIXED_ACTIVE_CONTENT ) &&
230- options . getPref ( "security.mixed_content.block_active_content" , false ) )
234+ if ( state & WPL . STATE_BLOCKED_MIXED_ACTIVE_CONTENT )
235+ className = "mixedActiveBlocked" ;
236+ tooltip = gNavigatorBundle . getFormattedString (
237+ "identity.identified.verifier" ,
238+ [ gIdentityHandler . getIdentityData ( ) . caOrg ] ) ;
239+ } else if ( state & WPL . STATE_IS_BROKEN ) {
240+ if ( state & WPL . STATE_LOADED_MIXED_ACTIVE_CONTENT )
231241 className = "mixedActiveContent" ;
242+ else
243+ className = "mixedDisplayContent" ;
244+ tooltip = gNavigatorBundle . getString ( "identity.unknown.tooltip" ) ;
232245 }
233-
234246 node . className = className ;
247+ node . setAttribute ( "tooltiptext" , tooltip ) ;
235248 } , {
236249 openPopup : function ( anchor ) {
237250 var handler = window . gIdentityHandler ;
238251 if ( typeof handler === "undefiend" ) // Thunderbird has none
239252 return ;
240253
254+ if ( handler . refreshIdentityPopup )
255+ handler . refreshIdentityPopup ( ) ;
256+ else
257+ handler . setPopupMessages ( handler . _identityBox . className ) ;
241258 handler . _identityPopup . hidden = false ;
242- handler . setPopupMessages ( handler . _identityBox . className ) ;
243259 handler . _identityPopup . openPopup ( anchor ) ;
244260 } ,
245261 } ) ;
0 commit comments