Commits

Satyr Murky committed ce8e531

Addressed Bug 722872.

Comments (0)

Files changed (1)

ubiquity/modules/utils.js

         return "";
       var data = {}, trans = (Cc["@mozilla.org/widget/transferable;1"]
                               .createInstance(nsITransferable));
+      'init' in trans && trans.init(null);
       trans.addDataFlavor(flavor);
       service.getData(trans, kGlobalClipboard);
       trans.getTransferData(flavor, data, {});
     const {service, flavors} = gClipboard;
     var trans = (Cc["@mozilla.org/widget/transferable;1"]
                  .createInstance(nsITransferable));
+    'init' in trans && trans.init(null);
     for (let [flavor, data] in new Iterator(dict)) {
       if (~flavor.lastIndexOf("image/", 0)) {
         gClipboard.image = data;