From: Damyan Ivanov Date: Sat, 6 Oct 2012 14:24:39 +0000 (+0300) Subject: call .init(null) on created nsITransferable instance X-Git-Tag: 1.10~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=0acd8e09107de436334c888c9b5f3d1a2f76dbd6;p=icedeb.git call .init(null) on created nsITransferable instance fixes private browsing mode with FF 16 --- diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index 19cf120..a6d00da 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -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()