Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2011-06-30 20:03:38 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-07-01 00:46:22 (GMT)
commitc2c6aeb7835a823d9c5ba9b48ac753e1ecc7d143 (patch)
tree3eed36f5008d8ce6edc94d25dabebda3d4cc9937 /webactivity.py
parentf4d0f70d93d6f61d2653a442719b6c1e04db5653 (diff)
Start password manager
With todays plethora of sites using passwords for authentication a password manager in the browser is important not just for convenience, but also for security. Most humans can't remember more than a few secure passwords. Without storing passwords in the browser they use weak passwords and/or the same password for many sites. Passwords are stored unencrypted by default. This is consistent with the security model of most deployments (no login passwords either). Individual users can set a password by accessing the internal URL chrome://pippki/content/changepassword.xul . However this password needs to be entered once per Browse session. Solutions like disk encryption that are at the same time more convenient (a single password per login) and more secure (all data gets encrypted, not just passwords to websites). The UI isn't pretty [1], but we can still improve on that later on. [1] http://wiki.sugarlabs.org/go/File:Browse-save-password.png Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py
index d95e642..97bedaa 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -212,6 +212,10 @@ class WebActivity(activity.Activity):
branch = pref_service.getBranch("mozilla.widget.")
branch.setBoolPref("disable-native-theme", True)
+ # Start password manager
+ cls = components.classes["@mozilla.org/login-manager;1"]
+ login_manager = cls.getService(components.interfaces.nsILoginManager)
+
# HACK
# Currently, the multiple tabs feature crashes the Browse activity
# on cairo versions 1.8.10 or later. The exact cause for this