Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox updated itself to version 17, but I see it's not released yet. More - copy to clipboard from javascript doesn't work anymore.

  • 5 replies
  • 5 have this problem
  • 13 views
  • Last reply by trancephorm

more options

It asked me for update as always, I allowed it and it's now 17 which is not officially released + javascript is unable to copy data to clipboard anymore.

It asked me for update as always, I allowed it and it's now 17 which is not officially released + javascript is unable to copy data to clipboard anymore.

All Replies (5)

more options

Hi,

It has been officially released. Please see this.

Is the copy/paste problem happening only on particular sites... If so, could you please provide some links??

If it is happening generally, you can reset Firefox and start afresh.

The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. Note: This will cause you to lose any Extensions, Open websites, and some Preferences.

To Reset Firefox do the following:

  1. Go to Firefox > Help > Troubleshooting Information.
  2. Click the "Reset Firefox" button.
  3. Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
  4. Firefox will open with all factory defaults applied.


Further information can be found in the Refresh Firefox - reset add-ons and settings article.

Did this fix your problems? Please report back to us!

more options

This morning, FF17 wasn't yet officially released, and it updated yesterday. That's the case here, but it's alright now.

This Javascript function used to work, now it doesn't.

function copy_clip(meintext) {

if (window.clipboardData) 
  {
  
  // the IE-manier
  window.clipboardData.setData("Text", meintext);
  
  // waarschijnlijk niet de beste manier om Moz/NS te detecteren;
  // het is mij echter onbekend vanaf welke versie dit precies werkt:
  }
  else if (window.netscape) 
  { 
  
  // dit is belangrijk maar staat nergens duidelijk vermeld:
  // you have to sign the code to enable this, or see notes below 
  netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  
  // maak een interface naar het clipboard
  var clip = Components.classes['@mozilla.org/widget/clipboard;1']
                .createInstance(Components.interfaces.nsIClipboard);
  if (!clip) return;
  
  // maak een transferable
  var trans = Components.classes['@mozilla.org/widget/transferable;1']
                 .createInstance(Components.interfaces.nsITransferable);
  if (!trans) return;
  
  // specificeer wat voor soort data we op willen halen; text in dit geval
  trans.addDataFlavor('text/unicode');
  
  // om de data uit de transferable te halen hebben we 2 nieuwe objecten 
  // nodig om het in op te slaan
  var str = new Object();
  var len = new Object();
  
  var str = Components.classes["@mozilla.org/supports-string;1"]
               .createInstance(Components.interfaces.nsISupportsString);
  
  var copytext=meintext;
  
  str.data=copytext;
  
  trans.setTransferData("text/unicode",str,copytext.length*2);
  
  var clipid=Components.interfaces.nsIClipboard;
  
  if (!clip) return false;
  
  clip.setData(trans,null,clipid.kGlobalClipboard);
  
  }
  //alert("Following info was copied to your clipboard:\n\n" + meintext);
  return false;

}

You still think resetting would help? I do have pretty much customized FF, it's the last resort for me...

Thanks..

more options

Please see this. The MozillaZine forum would also be helpful.

more options

Is this code used in an extension or code on a web page?

The latter may not be working anymore because security measures tend to get tighter in each Firefox version.

Do you see any (possibly security related) error messages in the Error Console?

more options

please excuse me, but i downgraded firefox to 16.0.2, i can't tell you nothing more about it, please would someone notify me when this works out? ;)