[Pkg-mozext-commits] [autofill-forms] 05/07: New upstream version 1.1.8

Sascha Girrulat sagiru-guest at moszumanska.debian.org
Sun Feb 4 13:00:21 UTC 2018


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

sagiru-guest pushed a commit to branch master
in repository autofill-forms.

commit 23f032c9cb80023e897fd1366bf8954558f6e459
Author: Sascha Girrulat <sascha at girrulat.de>
Date:   Sun Feb 4 13:46:42 2018 +0100

    New upstream version 1.1.8
---
 META-INF/manifest.mf                    |  24 +++++++--------
 META-INF/mozilla.rsa                    | Bin 4182 -> 4182 bytes
 META-INF/mozilla.sf                     |   4 +--
 chrome/content/autofillForms.js         |  50 ++++++++++++++++++++++++++++----
 chrome/content/autofillFormsOptions.js  |  39 +++++++++++++++----------
 chrome/content/autofillFormsOptions.xul |   3 ++
 chrome/content/autofillFormsOverlay.js  |   6 ++--
 defaults/preferences/autofillForms.js   |   1 +
 install.rdf                             |   3 +-
 9 files changed, 92 insertions(+), 38 deletions(-)

diff --git a/META-INF/manifest.mf b/META-INF/manifest.mf
index be6050f..f41402a 100644
--- a/META-INF/manifest.mf
+++ b/META-INF/manifest.mf
@@ -2,8 +2,8 @@ Manifest-Version: 1.0
 
 Name: install.rdf
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: mNJgGLvAGfW+rGshuPkIBw==
-SHA1-Digest: qRD6fG/DOjDsq1LG4VrKLL+mQ20=
+MD5-Digest: vMu3Li5Dm7anOroF6lIULg==
+SHA1-Digest: IERExqgek9eomaV+/FbxXSVm9Qc=
 
 Name: chrome.manifest
 Digest-Algorithms: MD5 SHA1
@@ -12,23 +12,23 @@ SHA1-Digest: DCTZBo2TNcTIGHZT5afPytqTsmg=
 
 Name: chrome/content/autofillForms.js
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: 74FqXTjOvSeimXymcyAYZw==
-SHA1-Digest: K0KrM8tGlUoiy08H10TWqhZCQac=
+MD5-Digest: QImwucKHk5UR39llzH2gCg==
+SHA1-Digest: ug8WI4ECzEydQN+UFiFP5SDu5YM=
 
 Name: chrome/content/autofillFormsOptions.js
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: 2jjn+0YqVx+eZn/lSnhD5w==
-SHA1-Digest: l9e+YNPd7ofhEoh9DuWGok1KjSI=
+MD5-Digest: wq94OO3QwDTzBuoqGt6qEQ==
+SHA1-Digest: OPLKp+dXjdH4cyIaSnnzgww+lps=
 
 Name: chrome/content/autofillFormsOptions.xul
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: ALIw6FLLHWD/c0lxoArM7w==
-SHA1-Digest: zS4Ll2J008/tvPs88lzKTvaGHEw=
+MD5-Digest: IYgFcHypdMeigltVxn1F0w==
+SHA1-Digest: uTXBBrIy7SlVowSOmZGa1fvKwak=
 
 Name: chrome/content/autofillFormsOverlay.js
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: cxLuirUW/W77wX8dk144mw==
-SHA1-Digest: wZfww6Mix9KtaOUVrImTM81BFR8=
+MD5-Digest: jLdyHXIIDCFXqOkxD68nKg==
+SHA1-Digest: NGOfPMzhTcKPbGUlkSLTi0vHkDw=
 
 Name: chrome/content/autofillFormsOverlay.xul
 Digest-Algorithms: MD5 SHA1
@@ -362,6 +362,6 @@ SHA1-Digest: ml4ZaDY3xTRf5fn2ewYsSxekXxQ=
 
 Name: defaults/preferences/autofillForms.js
 Digest-Algorithms: MD5 SHA1
-MD5-Digest: IU5ofc/TooQ91eDnZGgs+A==
-SHA1-Digest: TsCcY8BVEnRaPprcIHc8POsUs1k=
+MD5-Digest: Dizp4rY4Pfzcs83kssvRuw==
+SHA1-Digest: aErNut0ranmUcLVNq/zqTCG5mV8=
 
diff --git a/META-INF/mozilla.rsa b/META-INF/mozilla.rsa
index 7a458e8..6f57b84 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 b5deaf1..0af17f0 100644
--- a/META-INF/mozilla.sf
+++ b/META-INF/mozilla.sf
@@ -1,4 +1,4 @@
 Signature-Version: 1.0
-MD5-Digest-Manifest: tAk8U4pCiWpzlyiSXzt4bA==
-SHA1-Digest-Manifest: DdcYk0hdYwjgkZCwqw3lDPDkew0=
+MD5-Digest-Manifest: TNCG5VK8WAoymd8OlbdPhg==
+SHA1-Digest-Manifest: /lRPOpIzbvUz11tCI2VjEfVcIEw=
 
diff --git a/chrome/content/autofillForms.js b/chrome/content/autofillForms.js
index 64abfb2..8be8c87 100644
--- a/chrome/content/autofillForms.js
+++ b/chrome/content/autofillForms.js
@@ -6,6 +6,35 @@
  * @link https://blueimp.net/mozilla/
  */
 
+(function () {
+  var manager = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+  var version = "";
+  try {
+    version = (navigator.userAgent.match(/Firefox\/([\d\.]*)/) || navigator.userAgent.match(/Thunderbird\/([\d\.]*)/))[1];
+  } catch (e) {}
+
+  // announcing WebExtension replacement
+  if (version && manager.getBoolPref("extensions.autofillForms at blueimp.net.webExtension")) {
+    var v50 = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
+      .getService(Components.interfaces.nsIVersionComparator)
+      .compare(version, "50.0");
+    if (v50 >= 0) {
+      window.setTimeout(function () {
+        try {
+          var require = Components.utils.import('resource://gre/modules/commonjs/toolkit/require.js', {}).require;
+          var tabs = require('sdk/tabs');
+          tabs.open("https://addons.mozilla.org/en-US/firefox/addon/autofill-forms-e10s");
+          var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
+                    .getService(Components.interfaces.nsIPromptService);
+         promptService.alert(null, "Autofill Forms Migration", "Autofill Forms is getting deprecated!\n\nPlease give the e10s version a try and replace it with this XUL version.");
+         manager.setBoolPref("extensions.autofillForms at blueimp.net.webExtension", false);
+        }
+        catch (e) {}
+      }, 10000);
+    }
+  }
+})();
+
 var autofillForms = {
   // The selected profile index:
   profileIndex: null,
@@ -560,6 +589,7 @@ var autofillForms = {
   hideToolbarButtonUpdate: function() {
     var autofillFormsButton = document.getElementById('autofillFormsButton');
     var hideToolbarButton = this.autofillFormsPrefs.getBoolPref('hideToolbarButton');
+    console.error(autofillFormsButton, hideToolbarButton)
     if(!autofillFormsButton && !hideToolbarButton) {
       // Add the toolbar button to the toolbar:
       this.installToolbarButton('autofillFormsButton');
@@ -1327,9 +1357,14 @@ var autofillForms = {
   },
 
   fireEvent: function(element,anEvent) {
-    var evt = document.createEvent("HTMLEvents");
-    evt.initEvent(anEvent, true, true ); // event type,bubbling,cancelable
-    return !element.dispatchEvent(evt);
+    try {
+      var evt = document.createEvent("HTMLEvents");
+      evt.initEvent(anEvent, true, true ); // event type,bubbling,cancelable
+      return !element.dispatchEvent(evt);
+    }
+    catch (e) {
+      return true;
+    }
   },
 
   applyStoredFieldRulesAlternatives: function() {
@@ -4451,7 +4486,10 @@ var autofillForms = {
       }
 
       // Add the key to the mainKeyset:
-      document.getElementById('mainKeyset').appendChild(keyNode);
+      try {
+        document.getElementById('mainKeyset').appendChild(keyNode);
+      }
+      catch (e) {}
     }
   },
 
@@ -5479,14 +5517,16 @@ var autofillForms = {
   finalizeToolbarButtonStatus: function() {
     var autofillFormsButton = document.getElementById('autofillFormsButton');
     var hideToolbarButton = this.autofillFormsPrefs.getBoolPref('hideToolbarButton');
+    console.error(autofillFormsButton, hideToolbarButton)
     if(!autofillFormsButton && !hideToolbarButton) {
       // If the toolbar button icon has been removed from the toolbar by drag&drop
       // enable the hideToolbarButton setting:
-      this.autofillFormsPrefs.setBoolPref('hideToolbarButton', true);
+      //this.autofillFormsPrefs.setBoolPref('hideToolbarButton', true);
     } else if(autofillFormsButton && !autofillFormsButton.getAttribute('hidden')) {
       // If the toolbar button icon has been added to the toolbar by drag&drop
       // disable the hideToolbarButton setting:
       this.autofillFormsPrefs.setBoolPref('hideToolbarButton', false);
+      console.error(2)
     }
   },
 
diff --git a/chrome/content/autofillFormsOptions.js b/chrome/content/autofillFormsOptions.js
index 9ebca81..11e875d 100644
--- a/chrome/content/autofillFormsOptions.js
+++ b/chrome/content/autofillFormsOptions.js
@@ -6,20 +6,27 @@
  * @link https://blueimp.net/mozilla/
  */
 
-var {Services} = Components.utils.import("resource://gre/modules/Services.jsm");
-(function (os) {
-  var bp = autofillForms.getPrefManager().getBranch('browser.preferences.');
-  var p = bp.getBoolPref('animateFadeIn');
-  window.addEventListener('load', function() {
-    if (os === 'Darwin') {
-      bp.setBoolPref('animateFadeIn', false);
-    }
-    autofillForms.optionsInitialize();
-  }, false);
-  window.addEventListener('unload', function() {
-    if (os === 'Darwin') {
-      bp.setBoolPref('animateFadeIn', p);
+window.addEventListener('load', function() {
+  autofillForms.optionsInitialize();
+
+  var {Services} = Components.utils.import("resource://gre/modules/Services.jsm");
+  (function (os) {
+    try {
+      var bp = autofillForms.getPrefManager().getBranch('browser.preferences.');
+      var p = bp.getBoolPref('animateFadeIn');
+      window.addEventListener('load', function() {
+        if (os === 'Darwin') {
+          bp.setBoolPref('animateFadeIn', false);
+        }
+      }, false);
+      window.addEventListener('unload', function() {
+        if (os === 'Darwin') {
+          bp.setBoolPref('animateFadeIn', p);
+        }
+        autofillForms.optionsFinalize();
+      }, false);
     }
-    autofillForms.optionsFinalize();
-  }, false);
-})(Services.appinfo.OS);
+    catch (e) {}
+  })(Services.appinfo.OS);
+}, false);
+window.addEventListener('unload', function() { autofillForms.finalize(); }, false);
diff --git a/chrome/content/autofillFormsOptions.xul b/chrome/content/autofillFormsOptions.xul
index 71c01e7..e9ee030 100644
--- a/chrome/content/autofillFormsOptions.xul
+++ b/chrome/content/autofillFormsOptions.xul
@@ -17,6 +17,9 @@
 		helpTopic="Simple Editor">
 		<preferences>
 		</preferences>
+		<hbox>
+			For multiprocessor (e10s) compatible version of Autofill Forms please give my <label class="text-link" value="AutoFill Forms (e10s) project" href="https://addons.mozilla.org/en-US/firefox/addon/autofill-forms-e10s/"/> a try.
+		</hbox>
 		<vbox flex="1">
 			<hbox align="center">
 				<menulist id="simpleInterfaceProfileMenuList" oncommand="autofillForms.setProfileIndex(this.selectedIndex);"/>
diff --git a/chrome/content/autofillFormsOverlay.js b/chrome/content/autofillFormsOverlay.js
index 08becc3..6b3b864 100644
--- a/chrome/content/autofillFormsOverlay.js
+++ b/chrome/content/autofillFormsOverlay.js
@@ -5,6 +5,8 @@
  * @license GNU General Public License
  * @link https://blueimp.net/mozilla/
  */
- 
-window.addEventListener('load', function() { autofillForms.initialize(); }, false);
+
+window.addEventListener('load', function() {
+  autofillForms.initialize();
+}, false);
 window.addEventListener('unload', function() { autofillForms.finalize(); }, false);
diff --git a/defaults/preferences/autofillForms.js b/defaults/preferences/autofillForms.js
index c6f84fa..cecf690 100644
--- a/defaults/preferences/autofillForms.js
+++ b/defaults/preferences/autofillForms.js
@@ -52,5 +52,6 @@ pref('extensions.autofillForms at blueimp.net.profileSiteRules', '(?:)');
 pref('extensions.autofillForms at blueimp.net.autoSelectBestProfile', true);
 pref('extensions.autofillForms at blueimp.net.helpURL', 'http://firefox.add0n.com/autofill-forms.html');
 pref("extensions.autofillForms at blueimp.net.welcome", true);
+pref("extensions.autofillForms at blueimp.net.webExtension", true);
 pref("extensions.autofillForms at blueimp.net.version", "");
 pref("extensions.autofillForms at blueimp.net.post_install_url", "http://firefox.add0n.com/autofill-forms.html");
diff --git a/install.rdf b/install.rdf
index 8141016..ff58990 100644
--- a/install.rdf
+++ b/install.rdf
@@ -9,7 +9,8 @@
     <em:iconURL>chrome://autofillForms/skin/icon.png</em:iconURL>
     <em:optionsURL>chrome://autofillForms/content/autofillFormsOptions.xul</em:optionsURL>
     <em:homepageURL>http://firefox.add0n.com/autofill-forms.html</em:homepageURL>
-    <em:version>1.1.3</em:version>
+    <em:version>1.1.8</em:version>
+    <em:multiprocessCompatible>false</em:multiprocessCompatible>
     <em:type>2</em:type>
     <em:targetApplication>
       <Description>

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



More information about the Pkg-mozext-commits mailing list