Merge lp:~sil/libubuntuone/secure-padlock into lp:libubuntuone

Proposed by Stuart Langridge
Status: Merged
Approved by: Rodrigo Moya
Approved revision: 75
Merged at revision: not available
Proposed branch: lp:~sil/libubuntuone/secure-padlock
Merge into: lp:libubuntuone
Diff against target: 40 lines (+21/-0)
2 files modified
data/u1-preview.js (+15/-0)
libubuntuone/u1-music-store.c (+6/-0)
To merge this branch: bzr merge lp:~sil/libubuntuone/secure-padlock
Reviewer Review Type Date Requested Status
Rodrigo Moya (community) Approve
Review via email: mp+22375@code.launchpad.net

Commit message

Show a small padlock on secure pages

Description of the change

Show a small padlock on secure pages.

To post a comment you must log in.
lp:~sil/libubuntuone/secure-padlock updated
75. By Stuart Langridge

remove old useless function

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/u1-preview.js'
--- data/u1-preview.js 2010-03-05 12:27:29 +0000
+++ data/u1-preview.js 2010-03-29 15:57:44 +0000
@@ -49,4 +49,19 @@
49 mainContent.insertBefore(warn, mainContent.firstChild);49 mainContent.insertBefore(warn, mainContent.firstChild);
50 }50 }
51 }51 }
52
53 // add a padlock if this is a secure page
54 if (location.href.substr(0,6) == "https:") {
55 var padlock = document.createElement("img");
56 padlock.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAYAAACwXJejAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAINJREFUeNpiTEtLYwACfiCeBsQ2QCwHxK%2BBeB8QZwHxOyYGCOgFYl0gjgNiQyD2B2IJIJ4DkmSBKvIGYjcgvsyAAOlAfAzEgJkkCsQ3GVDBI6gzwIp4gJgZiH%2BhKfoOFQdb9xkq%2BJ8BO/jPxEAEGABFTwmoeQpSlALEL3AoAImnAAQYAHZ7FWCCovUtAAAAAElFTkSuQmCC";
57 padlock.style.position = "fixed";
58 padlock.style.bottom = "0";
59 padlock.style.right = "0";
60 padlock.style.zIndex = "1000";
61 padlock.onclick = function() {
62 window.status = "u1showcertificate:::";
63 return false;
64 }
65 document.body.appendChild(padlock);
66 }
52})()67})()
5368
=== modified file 'libubuntuone/u1-music-store.c'
--- libubuntuone/u1-music-store.c 2010-03-25 22:07:59 +0000
+++ libubuntuone/u1-music-store.c 2010-03-29 15:57:44 +0000
@@ -784,6 +784,12 @@
784 g_strfreev (args);784 g_strfreev (args);
785 }785 }
786 }786 }
787
788 if (g_str_has_prefix (text, "u1showcertificate:::")) {
789 /* should show certificate here in its own window. */
790 }
791
792
787}793}
788794
789static gboolean795static gboolean

Subscribers

People subscribed via source and target branches