[Pkg-mozext-commits] [pwdhash] 01/06: Imported Upstream version 1.7.4

Benjamin Drung bdrung at moszumanska.debian.org
Thu Dec 29 13:06:29 UTC 2016


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

bdrung pushed a commit to branch master
in repository pwdhash.

commit fd77cead65e0cae06dd6d597226c845c7711c2cd
Author: Benjamin Drung <bdrung at debian.org>
Date:   Thu Dec 29 13:49:56 2016 +0100

    Imported Upstream version 1.7.4
---
 META-INF/manifest.mf                            |  23 ++-
 META-INF/mozilla.rsa                            | Bin 4196 -> 4196 bytes
 META-INF/mozilla.sf                             |   4 +-
 README.md                                       |  20 +++
 chrome.manifest                                 |   6 +-
 chrome/locale/en-US/stanford-pwdhash.properties |  14 +-
 icon.svg                                        | 141 ++++++++++++++++
 icon64.png                                      | Bin 0 -> 2556 bytes
 install.js                                      | 210 ++++++++++++------------
 install.rdf                                     |   6 +-
 10 files changed, 300 insertions(+), 124 deletions(-)

diff --git a/META-INF/manifest.mf b/META-INF/manifest.mf
index 27ce6e5..2278689 100644
--- a/META-INF/manifest.mf
+++ b/META-INF/manifest.mf
@@ -2,18 +2,33 @@ Manifest-Version: 1.0
 
 Name: install.rdf
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: uKro8+Lng6zMRxeiCB8vLA==
-SHA1-Digest: 50RyNqZvbNndx4HGIfuSjcwqKpQ=
+MD5-Digest: Om9/6hJjFuErRaN1PRu4sw==
+SHA1-Digest: S87o+foGuhBeinGeoxZUApiSzSQ=
 
 Name: chrome.manifest
 Digest-Algorithms: MD5 SHA1
 MD5-Digest: c79JMI43JMVMdwWVQa573w==
 SHA1-Digest: arTSHViKyWlFxmsKs99eoxlRc6s=
 
+Name: icon64.png
+Digest-Algorithms: MD5 SHA1
+MD5-Digest: vaMAZwqR3cmwsmQX1ohsrw==
+SHA1-Digest: s/rYaEz2ZAEo6nSEFRASz1QNbkA=
+
+Name: icon.svg
+Digest-Algorithms: MD5 SHA1
+MD5-Digest: EB9+Fm4kHdPqxPCJH74uZQ==
+SHA1-Digest: 01RJWi5rx4jYS89kuZpk3p2upUQ=
+
 Name: install.js
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: 4GPIcUuq3buK8nhxceezJQ==
-SHA1-Digest: 8Ay+tmo7RruT9MvgJSyaB6pit5E=
+MD5-Digest: NSLsHCG0CP2kO6pVNpwESA==
+SHA1-Digest: 0N3rI/wxVT8uSH21r3TrbhD7ltk=
+
+Name: README.md
+Digest-Algorithms: MD5 SHA1
+MD5-Digest: JFqpHcxDY2e2O4AI8QpWXQ==
+SHA1-Digest: Q3T5fWzBP3hMGW3vwdjMJkla/0M=
 
 Name: chrome/content/contents.rdf
 Digest-Algorithms: MD5 SHA1
diff --git a/META-INF/mozilla.rsa b/META-INF/mozilla.rsa
index 90a131f..c1ec0f2 100644
Binary files a/META-INF/mozilla.rsa and b/META-INF/mozilla.rsa differ
diff --git a/META-INF/mozilla.sf b/META-INF/mozilla.sf
index 8d8285c..702f226 100644
--- a/META-INF/mozilla.sf
+++ b/META-INF/mozilla.sf
@@ -1,4 +1,4 @@
 Signature-Version: 1.0
-MD5-Digest-Manifest: 3sGaLJ4juktjs1P88gpw1A==
-SHA1-Digest-Manifest: s4CmKlGHz7duwjCNDmSvojLH9YI=
+MD5-Digest-Manifest: kHDybvbUOgpezt3XZ84JXA==
+SHA1-Digest-Manifest: iX8GJ3VSYQd7iwR23+SMLD5leI8=
 
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9d58cf4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+# pwdhash-firefox
+PwdHash extension for firefox
+
+## description
+Automatically generates per-site passwords if you prefix your password with @@ or press F2 beforehand.
+Prevents JavaScript from reading your password as it is typed.
+The same password will be generated at each subdomain: a.example.com matches b.example.com, a.example.co.uk
+matches b.example.co.uk, but a.co.uk and b.co.uk are different.
+
+Hashed passwords can also be generated at https://www.pwdhash.com/
+
+## roadmap
+
+* make it restartless (restructure code / migrate to jpm)
+* create preferences dialog
+* highlight password field if pwdhash is activated (optional)
+
+## feature brainstorm
+
+* activate for all password fields (press F2 to deactivate for current page, optional)
diff --git a/chrome.manifest b/chrome.manifest
index 0b69701..ae4e7e9 100644
--- a/chrome.manifest
+++ b/chrome.manifest
@@ -1,3 +1,3 @@
-content  stanford-pwdhash chrome/content/
-locale	stanford-pwdhash	en-US	chrome/locale/en-US/
-overlay chrome://browser/content/browser.xul chrome://stanford-pwdhash/content/stanford-pwdhash-overlay.xul
+content  stanford-pwdhash chrome/content/
+locale	stanford-pwdhash	en-US	chrome/locale/en-US/
+overlay chrome://browser/content/browser.xul chrome://stanford-pwdhash/content/stanford-pwdhash-overlay.xul
diff --git a/chrome/locale/en-US/stanford-pwdhash.properties b/chrome/locale/en-US/stanford-pwdhash.properties
index 5f1e638..9f5e61a 100644
--- a/chrome/locale/en-US/stanford-pwdhash.properties
+++ b/chrome/locale/en-US/stanford-pwdhash.properties
@@ -1,7 +1,7 @@
-pwdhash.pwddisplay=Hashed password for %s: %s
-pwdhash.warningtitle=PwdHash Warning
-pwdhash.pwdkeywarn=PwdHash could not find a password field on this page.\nIt is possible, though unlikely, that the site trying to steal your password.\nDo not enter your PwdHash password into this page.
-pwdhash.pwdprefixwarn=You typed the PwdHash password prefix, but you are not currently in a password field that starts with the password prefix.\nIt is possible, though unlikely, that the site trying to steal your password.\nDo not enter your PwdHash password into this page.
-pwdhash.trustedeventwarn=JavaScript on this page may be interfering with your ability to enter a password.\nAs a precaution, the password field has been cleared.\nIf the problem persists, you might not be able to use PwdHash on this page.
-pwdhash.longpasswordwarn=Your password is too long to protect.
-pwdhash.shortpasswordwarn=Your password is too short to protect.
+pwdhash.pwddisplay=Hashed password for %s: %s
+pwdhash.warningtitle=PwdHash Warning
+pwdhash.pwdkeywarn=PwdHash could not find a password field on this page.\nIt is possible, though unlikely, that the site trying to steal your password.\nDo not enter your PwdHash password into this page.
+pwdhash.pwdprefixwarn=You typed the PwdHash password prefix, but you are not currently in a password field that starts with the password prefix.\nIt is possible, though unlikely, that the site trying to steal your password.\nDo not enter your PwdHash password into this page.
+pwdhash.trustedeventwarn=JavaScript on this page may be interfering with your ability to enter a password.\nAs a precaution, the password field has been cleared.\nIf the problem persists, you might not be able to use PwdHash on this page.
+pwdhash.longpasswordwarn=Your password is too long to protect.
+pwdhash.shortpasswordwarn=Your password is too short to protect.
diff --git a/icon.svg b/icon.svg
new file mode 100644
index 0000000..2981792
--- /dev/null
+++ b/icon.svg
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="256"
+   height="256"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.47pre2 r22153"
+   sodipodi:docname="logo.svg"
+   inkscape:export-filename="/home/christophe/logo.png"
+   inkscape:export-xdpi="78.466728"
+   inkscape:export-ydpi="78.466728">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient5095">
+      <stop
+         style="stop-color:#d8ac37;stop-opacity:1;"
+         offset="0"
+         id="stop5097" />
+      <stop
+         id="stop5103"
+         offset="1"
+         style="stop-color:#e3dccd;stop-opacity:1;" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <inkscape:perspective
+       id="perspective2824"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient5095"
+       id="linearGradient5101"
+       x1="59.093925"
+       y1="132.1132"
+       x2="79.140663"
+       y2="113.26447"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(3.4261541,0,0,2.4980231,-36.595637,670.50129)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1.979899"
+     inkscape:cx="99.17364"
+     inkscape:cy="154.59066"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     inkscape:window-width="1011"
+     inkscape:window-height="896"
+     inkscape:window-x="610"
+     inkscape:window-y="28"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Calque 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-796.36218)">
+    <rect
+       style="fill:#ebd67c;fill-opacity:0.93333333;stroke:#1a1a1a;stroke-width:5.50088167;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="rect3633"
+       width="210.8129"
+       height="106.74695"
+       x="-15.21125"
+       y="799.88666"
+       ry="25.799984" />
+    <rect
+       style="fill:none;stroke:#666666;stroke-width:13.99517536;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="rect5117"
+       width="80.503868"
+       height="135.48209"
+       x="126.59905"
+       y="878.78577"
+       ry="40.251934" />
+    <text
+       xml:space="preserve"
+       style="font-size:155.50195312px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
+       x="-25.854151"
+       y="961.09528"
+       id="text2830"><tspan
+         sodipodi:role="line"
+         id="tspan2832"
+         x="-25.854151"
+         y="961.09528"
+         style="font-size:186.60235596px;font-family:FreeSans;-inkscape-font-specification:FreeSans">****</tspan></text>
+    <rect
+       style="fill:url(#linearGradient5101);fill-opacity:1;fill-rule:evenodd;stroke:#97611a;stroke-width:5.85076094;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="rect2837"
+       width="131.51566"
+       height="88.318451"
+       x="100.11144"
+       y="956.36383"
+       ry="23.562105"
+       rx="7.8540354" />
+    <rect
+       style="fill:#ffffff;fill-rule:evenodd;stroke:#ffffff;stroke-width:2.29532003px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       id="rect5113"
+       width="19.263811"
+       height="168.49045"
+       x="-19.575706"
+       y="764.1062" />
+  </g>
+</svg>
diff --git a/icon64.png b/icon64.png
new file mode 100644
index 0000000..3296957
Binary files /dev/null and b/icon64.png differ
diff --git a/install.js b/install.js
index 0801078..cde1f91 100644
--- a/install.js
+++ b/install.js
@@ -1,105 +1,105 @@
-// XpiInstaller
-// Modified by Nick, originally by Pike (Heavily inspired by code from Henrik Gemal and Stephen Clavering)
-
-var XpiInstaller = {
-
-	// --- Editable items begin ---
-	extFullName: 'PwdHash', // The name displayed to the user (don't include the version)
-	extShortName: 'stanford-pwdhash', // The leafname of the JAR file (without the .jar part)
-	extVersion: '1.7.3',
-	extAuthor: 'Stanford University',
-	extPostInstallMessage: 'Success! Please restart your browser to finish the installation.', // Set to null for no post-install message
-	// --- Editable items end ---
-
-	profileInstall: true,
-	silentInstall: false,
-
-	install: function()
-	{
-		var jarName = this.extShortName + '.jar';
-		var profileDir = Install.getFolder('Profile', 'chrome');
-
-		// Parse HTTP arguments
-		this.parseArguments();
-
-		// Check if extension is already installed in profile
-		if (File.exists(Install.getFolder(profileDir, jarName)))
-		{
-			if (!this.silentInstall)
-			{
-				Install.alert('Updating existing Profile install of ' + this.extFullName + ' to version ' + this.extVersion + '.');
-			}
-			this.profileInstall = true;
-		}
-		else if (!this.silentInstall)
-		{
-			// Ask user for install location, profile or browser dir?
-			this.profileInstall = Install.confirm('Install ' + this.extFullName + ' ' + this.extVersion + ' to your Profile directory (OK) or your Browser directory (Cancel)?');
-		}
-
-		// Init install
-		var dispName = this.extFullName + ' ' + this.extVersion;
-		var regName = '/' + this.extAuthor + '/' + this.extShortName;
-		Install.initInstall(dispName, regName, this.extVersion);
-
-		// Find directory to install into
-		var installPath;
-		if (this.profileInstall) installPath = profileDir;
-		else installPath = Install.getFolder('chrome');
-
-		// Add JAR file
-		Install.addFile(null, 'chrome/' + jarName, installPath, null);
-
-		// Register chrome
-		var jarPath = Install.getFolder(installPath, jarName);
-		var installType = this.profileInstall ? Install.PROFILE_CHROME : Install.DELAYED_CHROME;
-
-		// Register content
-		Install.registerChrome(Install.CONTENT | installType, jarPath, 'content/');
-
-		// Register locale
-		Install.registerChrome(Install.LOCALE | installType, jarPath, 'locale/');
-
-		// Perform install
-		var err = Install.performInstall();
-		if (err == Install.SUCCESS || err == Install.REBOOT_NEEDED)
-		{
-			if (!this.silentInstall && this.extPostInstallMessage)
-			{
-				Install.alert(this.extPostInstallMessage);
-			}
-		}
-		else
-		{
-			this.handleError(err);
-			return;
-		}
-	},
-
-	parseArguments: function()
-	{
-		// Can't use string handling in install, so use if statement instead
-		var args = Install.arguments;
-		if (args == 'p=0')
-		{
-			this.profileInstall = false;
-			this.silentInstall = true;
-		}
-		else if (args == 'p=1')
-		{
-			this.profileInstall = true;
-			this.silentInstall = true;
-		}
-	},
-
-	handleError: function(err)
-	{
-		if (!this.silentInstall)
-		{
-			Install.alert('Error: Could not install ' + this.extFullName + ' ' + this.extVersion + ' (Error code: ' + err + ')');
-		}
-		Install.cancelInstall(err);
-	}
-};
-
-XpiInstaller.install();
+// XpiInstaller
+// Modified by Nick, originally by Pike (Heavily inspired by code from Henrik Gemal and Stephen Clavering)
+
+var XpiInstaller = {
+
+	// --- Editable items begin ---
+	extFullName: 'PwdHash', // The name displayed to the user (don't include the version)
+	extShortName: 'stanford-pwdhash', // The leafname of the JAR file (without the .jar part)
+	extVersion: '1.7.4',
+	extAuthor: 'Stanford University',
+	extPostInstallMessage: 'Success! Please restart your browser to finish the installation.', // Set to null for no post-install message
+	// --- Editable items end ---
+
+	profileInstall: true,
+	silentInstall: false,
+
+	install: function()
+	{
+		var jarName = this.extShortName + '.jar';
+		var profileDir = Install.getFolder('Profile', 'chrome');
+
+		// Parse HTTP arguments
+		this.parseArguments();
+
+		// Check if extension is already installed in profile
+		if (File.exists(Install.getFolder(profileDir, jarName)))
+		{
+			if (!this.silentInstall)
+			{
+				Install.alert('Updating existing Profile install of ' + this.extFullName + ' to version ' + this.extVersion + '.');
+			}
+			this.profileInstall = true;
+		}
+		else if (!this.silentInstall)
+		{
+			// Ask user for install location, profile or browser dir?
+			this.profileInstall = Install.confirm('Install ' + this.extFullName + ' ' + this.extVersion + ' to your Profile directory (OK) or your Browser directory (Cancel)?');
+		}
+
+		// Init install
+		var dispName = this.extFullName + ' ' + this.extVersion;
+		var regName = '/' + this.extAuthor + '/' + this.extShortName;
+		Install.initInstall(dispName, regName, this.extVersion);
+
+		// Find directory to install into
+		var installPath;
+		if (this.profileInstall) installPath = profileDir;
+		else installPath = Install.getFolder('chrome');
+
+		// Add JAR file
+		Install.addFile(null, 'chrome/' + jarName, installPath, null);
+
+		// Register chrome
+		var jarPath = Install.getFolder(installPath, jarName);
+		var installType = this.profileInstall ? Install.PROFILE_CHROME : Install.DELAYED_CHROME;
+
+		// Register content
+		Install.registerChrome(Install.CONTENT | installType, jarPath, 'content/');
+
+		// Register locale
+		Install.registerChrome(Install.LOCALE | installType, jarPath, 'locale/');
+
+		// Perform install
+		var err = Install.performInstall();
+		if (err == Install.SUCCESS || err == Install.REBOOT_NEEDED)
+		{
+			if (!this.silentInstall && this.extPostInstallMessage)
+			{
+				Install.alert(this.extPostInstallMessage);
+			}
+		}
+		else
+		{
+			this.handleError(err);
+			return;
+		}
+	},
+
+	parseArguments: function()
+	{
+		// Can't use string handling in install, so use if statement instead
+		var args = Install.arguments;
+		if (args == 'p=0')
+		{
+			this.profileInstall = false;
+			this.silentInstall = true;
+		}
+		else if (args == 'p=1')
+		{
+			this.profileInstall = true;
+			this.silentInstall = true;
+		}
+	},
+
+	handleError: function(err)
+	{
+		if (!this.silentInstall)
+		{
+			Install.alert('Error: Could not install ' + this.extFullName + ' ' + this.extVersion + ' (Error code: ' + err + ')');
+		}
+		Install.cancelInstall(err);
+	}
+};
+
+XpiInstaller.install();
diff --git a/install.rdf b/install.rdf
index cbb0028..6a11d29 100644
--- a/install.rdf
+++ b/install.rdf
@@ -4,14 +4,14 @@
   <RDF:Description about="urn:mozilla:install-manifest">
 
   <em:id>{bb8d77b0-a845-4249-a205-ef7395587b69}</em:id>
-  <em:version>1.7.3.1-signed</em:version>
+  <em:version>1.7.4</em:version>
   <em:type>2</em:type>
 
   <em:targetApplication>
     <RDF:Description>
       <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
       <em:minVersion>1.0</em:minVersion>
-      <em:maxVersion>45.0</em:maxVersion>
+      <em:maxVersion>46.0</em:maxVersion>
     </RDF:Description>
   </em:targetApplication>
 
@@ -21,4 +21,4 @@
   <em:homepageURL>http://crypto.stanford.edu/PwdHash</em:homepageURL>
 
   </RDF:Description>
-</RDF:RDF>
\ No newline at end of file
+</RDF:RDF>

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



More information about the Pkg-mozext-commits mailing list