[Pkg-mozext-commits] [itsalltext] 01/09: Fix bug: IAT automatically overwrites the textarea in the browser with the value it has stored previously on disk #44

David Prévot taffit at moszumanska.debian.org
Fri Oct 30 20:34:13 UTC 2015


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

taffit pushed a commit to branch master
in repository itsalltext.

commit eb926d549ca10e9936c6c845f8708c39e34cb51a
Author: Xabier Oneca <xoneca at gmail.com>
Date:   Thu Feb 26 15:27:11 2015 +0100

    Fix bug: IAT automatically overwrites the textarea in the browser with the value it has stored previously on disk #44
    
    Set found extension **before** instantiating the file object. Otherwise, the default extension will be used for the file.
---
 src/chrome/content/cacheobj.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 63530dd..3fa6ace 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -188,10 +188,11 @@ CacheObj.prototype.setExtension = function (ext) {
         return; /* It's already set.  No problem. */
     }
 
+    this.extension = ext;
+
     /* Create the nsIFile object */
     var file = this.getFile();
 
-    this.extension = ext;
     if (file.exists()) {
         this.timestamp = file.lastModifiedTime;
         this.size      = file.fileSize;

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



More information about the Pkg-mozext-commits mailing list