[Pkg-mozext-commits] [autofill-forms] 01/06: Imported Upstream version 1.0.3

David Prévot taffit at moszumanska.debian.org
Sat Dec 13 21:13:32 UTC 2014


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

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

commit 654f194c7226dde32f3b1d9df4b7e0019959b9d0
Author: David Prévot <taffit at debian.org>
Date:   Sat Dec 13 16:21:27 2014 -0400

    Imported Upstream version 1.0.3
---
 chrome/content/autofillForms.js | 16 +++++++++++-----
 chrome/content/focus.js         |  6 ++++++
 install.rdf                     |  2 +-
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/chrome/content/autofillForms.js b/chrome/content/autofillForms.js
index 046701f..15ae90b 100644
--- a/chrome/content/autofillForms.js
+++ b/chrome/content/autofillForms.js
@@ -712,7 +712,10 @@ var autofillForms = {
 
       if(this.lastFormElementMatch && this.autofillFormsPrefs.getBoolPref('focusLastFormElementMatch')) {
         // Set the focus to the last matched form element:
-        this.lastFormElementMatch.focus();
+        var browserMM = gBrowser.selectedBrowser.messageManager;
+        if (!browserMM) {
+          this.lastFormElementMatch.focus();
+        }
       }
 
       // Reset the last matched form element:
@@ -1129,7 +1132,10 @@ var autofillForms = {
     }
 
     if (this.autofillFormsPrefs.getBoolPref('focusLastFormElementMatch')) {
-      element.focus();
+      var browserMM = gBrowser.selectedBrowser.messageManager;
+      if (!browserMM) {
+        element.focus();
+      }
     }
 
     // Add a box (with some help from Mike Ratcliffe)
@@ -4587,7 +4593,7 @@ var autofillForms = {
     // Parse the window params (e.g. initializing the target form field values):
     this.parseOptionsWindowParams();
   },
-  
+
   initSimpleInterface: function() {
     var rows = document.getElementById('simpleInterfaceRows');
     if(rows) {
@@ -4664,7 +4670,7 @@ var autofillForms = {
     row.lastChild.addEventListener('input', function () {
       this.value = autofillForms.replaceControlCharacters(this.value);
     }, false);
-    
+
     // Is textbox a password field?
     if(this.getRegExpPasswordLabel().test(name)) {
       row.lastChild.setAttribute('type', 'password');
@@ -4874,7 +4880,7 @@ var autofillForms = {
         'chrome=yes,resizable=yes,toolbar=yes,centerscreen=yes,modal=no,dependent=no,dialog=no',
         paramObject
       );
-      
+
       this.currentDialogs[url] = win;
       return win;
     } else {
diff --git a/chrome/content/focus.js b/chrome/content/focus.js
new file mode 100644
index 0000000..50c9769
--- /dev/null
+++ b/chrome/content/focus.js
@@ -0,0 +1,6 @@
+addMessageListener("autofillforms:i-want-to-replace-it", function (a) {
+  for (let u in a) {
+    console.error(u)
+  }
+  console.error(a.target)
+});
diff --git a/install.rdf b/install.rdf
index 21716d0..d30e963 100644
--- a/install.rdf
+++ b/install.rdf
@@ -9,7 +9,7 @@
     <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.0.2</em:version>
+    <em:version>1.0.3</em:version>
     <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