Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Gecko 16 nsITransferable.init() support.

  • Loading branch information...
commit 578d4e52ba22da01af0ef44b7619dee09177bfc7 1 parent 35f1a68
@arantius arantius authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  modules/util/newUserScript.js
View
1  modules/util/newUserScript.js
@@ -14,6 +14,7 @@ function newUserScript(aWin) {
try {
var transferable = Components.classes["@mozilla.org/widget/transferable;1"]
.createInstance(Components.interfaces.nsITransferable);
+ if ('init' in transferable) transferable.init(null);
transferable.addDataFlavor('text/unicode');
gClipboard.getData(transferable, gClipboard.kGlobalClipboard);
var str = new Object(), strLen = new Object();
Please sign in to comment.
Something went wrong with that request. Please try again.