[Pkg-mozext-commits] [perspectives-extension] 02/18: Perspectives - Fix text display for weakly seen results

David Prévot taffit at alioth.debian.org
Fri Oct 25 18:24:28 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch debian
in repository perspectives-extension.

commit 81f46054fa23f7adc23ed673f3bb590a609f25fa
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Sep 22 21:27:22 2013 -0600

    Perspectives - Fix text display for weakly seen results
    
    The tooltip was not getting set, causing the UI to show 'null'.
---
 plugin/chrome/content/notaries.js |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 4863526..c15c5bc 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -720,11 +720,15 @@ var Perspectives = {
 			} else if(ti.already_trusted && weak_trust && pref_https_weak) { 
 				// FIXME: need to clear any contrary banners
 				if(ti.state & Perspectives.state.STATE_IS_BROKEN) { 
-					Pers_statusbar.setStatus(ti.uri, Pers_statusbar.STATE_NEUT, 
-					"HTTPS Certificate is weakly trusted, but site contains insecure embedded content. "); //TODO: localize
+					ti.query_results.tooltip =
+						"HTTPS Certificate is weakly trusted, but site contains insecure embedded content." //TODO: localize
+					Pers_statusbar.setStatus(ti.uri, Pers_statusbar.STATE_NEUT,
+						ti.query_results.tooltip);
 				}  else { 
+					ti.query_results.tooltip =
+						"This site uses multiple certificates, including the certificate received and trusted by your browser." //TODO: localize
 					Pers_statusbar.setStatus(ti.uri, Pers_statusbar.STATE_SEC, 
-					"This site uses multiple certificates, including the certificate received and trusted by your browser."); //TODO: localize
+						ti.query_results.tooltip);
 
 				} 
 			} else if (ti.query_results.summary.indexOf("ssl key") == -1) { 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list