[Pkg-mozext-commits] [itsalltext] 323/459: cobj not initialized in menuNewExtEdit

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:34 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 2ded70a14a92c90673ae4602e9fa66f0785e1d42
Author: Christian Höltje <docwhat at gmail.com>
Date:   Sun Aug 3 11:42:05 2008 -0400

    cobj not initialized in menuNewExtEdit
    
    Patch submitted by Ralf S. Engelschall --
    I've playing around with your latest ItsAllText! Firefox plugin and
    stumbled over a bug: the context menu "Edit with as XXX" entries
    bailed out because variable "cobj" was not properly initialized.
---
 src/chrome/content/itsalltext.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 204470e..13494ac 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -992,7 +992,7 @@ ItsAllText.prototype.menuNewExtEdit = function (event) {
  */
 ItsAllText.prototype.menuExtEdit = function (ext, clobber, event) {
     var uid = this.private_current_uid,
-        cobj;
+        cobj = this.CacheObj.get(uid);
     if (ext !== null) {
         ext = typeof(ext) === 'string'?ext:event.target.getAttribute('label');
     }

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