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 19cf120..a6d00da 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()