]> git.ktnx.net Git - icedeb.git/commitdiff
call .init(null) on created nsITransferable instance
authorDamyan Ivanov <dmn@debian.org>
Sat, 6 Oct 2012 14:24:39 +0000 (17:24 +0300)
committerDamyan Ivanov <dmn@debian.org>
Sat, 6 Oct 2012 14:24:39 +0000 (17:24 +0300)
fixes private browsing mode with FF 16

chrome/content/icedeb.js

index 19cf1207f1a64fc3dc798c94ddb04d43353270ee..a6d00da93020599b903f7f0d38e7359d6c595cbc 100644 (file)
@@ -8,6 +8,9 @@ IceDeb = {
             .createInstance(Components.interfaces.nsITransferable);
         if (!trans) return null;
 
+        if (typeof(trans.init) === 'function')
+            trans.init(null);
+
         trans.addDataFlavor("text/unicode");
         clip.getData(trans,
                 clip.supportsSelectionClipboard()