@@ -214,32 +214,48 @@ const StatusLine = Module("statusline", {
214
214
} ) ;
215
215
statusline . addField ( "ssl" , "The currently SSL status" , "liberator-status-ssl" ,
216
216
function updateSSLState ( node , state ) {
217
- var className = "" ;
217
+ var className = "notSecure" ;
218
+ var tooltip = gNavigatorBundle . getString ( "identity.unknown.tooltip" ) ;
218
219
if ( ! state ) {
219
220
let securityUI = config . tabbrowser . securityUI ;
220
221
if ( securityUI )
221
222
state = securityUI . state || 0 ;
222
223
}
223
224
const WPL = Components . interfaces . nsIWebProgressListener ;
224
- if ( state & WPL . STATE_IDENTITY_EV_TOPLEVEL )
225
+ if ( state & WPL . STATE_IDENTITY_EV_TOPLEVEL ) {
225
226
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 ) {
227
233
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 )
231
241
className = "mixedActiveContent" ;
242
+ else
243
+ className = "mixedDisplayContent" ;
244
+ tooltip = gNavigatorBundle . getString ( "identity.unknown.tooltip" ) ;
232
245
}
233
-
234
246
node . className = className ;
247
+ node . setAttribute ( "tooltiptext" , tooltip ) ;
235
248
} , {
236
249
openPopup : function ( anchor ) {
237
250
var handler = window . gIdentityHandler ;
238
251
if ( typeof handler === "undefiend" ) // Thunderbird has none
239
252
return ;
240
253
254
+ if ( handler . refreshIdentityPopup )
255
+ handler . refreshIdentityPopup ( ) ;
256
+ else
257
+ handler . setPopupMessages ( handler . _identityBox . className ) ;
241
258
handler . _identityPopup . hidden = false ;
242
- handler . setPopupMessages ( handler . _identityBox . className ) ;
243
259
handler . _identityPopup . openPopup ( anchor ) ;
244
260
} ,
245
261
} ) ;
0 commit comments