From 0acd8e09107de436334c888c9b5f3d1a2f76dbd6 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 6 Oct 2012 17:24:39 +0300 Subject: [PATCH] call .init(null) on created nsITransferable instance fixes private browsing mode with FF 16 --- chrome/content/icedeb.js | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.39.5