[Pkg-mozext-commits] [autofill-forms] 02/07: possible fix for #6

David Prévot taffit at moszumanska.debian.org
Sun Nov 15 01:31:40 UTC 2015


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

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

commit e0f6b67cf708ac07c6542c70772a75623d53615c
Author: Sarah Avilov <sarah.avilov at gmail.com>
Date:   Wed Sep 16 16:09:29 2015 +0430

    possible fix for #6
---
 aff.xpi                                | Bin 153839 -> 153826 bytes
 chrome/content/autofillFormsOptions.js |   5 ++---
 chrome/content/inject.js               |   8 +++++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/aff.xpi b/aff.xpi
index cc2c042..a1b8d1a 100644
Binary files a/aff.xpi and b/aff.xpi differ
diff --git a/chrome/content/autofillFormsOptions.js b/chrome/content/autofillFormsOptions.js
index 3051891..9ebca81 100644
--- a/chrome/content/autofillFormsOptions.js
+++ b/chrome/content/autofillFormsOptions.js
@@ -14,13 +14,12 @@ var {Services} = Components.utils.import("resource://gre/modules/Services.jsm");
     if (os === 'Darwin') {
       bp.setBoolPref('animateFadeIn', false);
     }
-   autofillForms.optionsInitialize();
+    autofillForms.optionsInitialize();
   }, false);
   window.addEventListener('unload', function() {
     if (os === 'Darwin') {
       bp.setBoolPref('animateFadeIn', p);
-      console.error(p);
     }
-   autofillForms.optionsFinalize();
+    autofillForms.optionsFinalize();
   }, false);
 })(Services.appinfo.OS);
diff --git a/chrome/content/inject.js b/chrome/content/inject.js
index 3116d93..d7d4c44 100644
--- a/chrome/content/inject.js
+++ b/chrome/content/inject.js
@@ -3,9 +3,11 @@
 
 function onchange (elem) {
   try {
-    var evt = content.document.createEvent('HTMLEvents');
-    evt.initEvent('change', true, true);
-    elem.dispatchEvent(evt);
+    // var evt = content.document.createEvent('HTMLEvents');
+    // evt.initEvent('change', true, true);
+    // elem.dispatchEvent(evt);
+    var event = new Event('change');
+    elem.dispatchEvent(event);
   }
   catch (e) {}
 }

-- 
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