Firefox Copy/Paste

Xopus 4.3.4

No special settings have to be used from Xopus 4.3.4 and up.

Xopus 4.2.5

In Xopus 4.2.5 the Copy/Paste functionality was improved with a signed script. When using Firefox, and using Copy/Paste functionality. Xopus will show a security dialog:

In order to be able to paste from outside Xopus into Xopus, you will have to press allow in this dialog.

You can also check the option to remember this decision to save your preference, if you do not want to see this dialog whenever you copy or paste when working with Firefox. The setting is then remembered in prefs.js, a file in your Firefox profile.

Firefox 15

As of Firefox 15 this dialog no longer shows, and the setting can no longer be saved through it. Xopus will show a message about the .jar file not loading. This message is incorrect. Xopus simply cannot use the signed script and as such Copy/Paste in Firefox will revert to the default.

In Firefox 15 in order to use the signed script you have do do the following:

  • Close firefox

  • Edit prefs.js and insert the following lines :

user_pref("capability.principal.certificate.p0.granted", "UniversalXPConnect");
user_pref("capability.principal.certificate.p0.id", "A6:E4:A3:71:EE:64:4B:0A:DB:1E:82:48:1F:0C:E2:AF:AF:0B:85:5F");
user_pref("capability.principal.certificate.p0.subjectName", "CN=SDL PLC,O=SDL PLC,L=Berkshire,C=GB");
  • Reboot (This seems to be the only way to make it consistently work)

What operating system you are on can make a difference in this case.

Removing the client preference setting

To remove the setting you will have to find prefs.js. On Windows this file is located in:

{drive-letter}:\Documents and Settings\
{user-name}\Application Data\Mozilla\Firefox\Profiles\{profile-name}\prefs.js

On Mac OS-X the following

/Users/{user-name}/Application Support/Firefox/Profiles/{profile-name}/prefs.js

This location may differ per operating system.

Look for the following lines and remove them:

user_pref("capability.principal.certificate.p0.granted", "UniversalXPConnect");
user_pref("capability.principal.certificate.p0.id", "A6:E4:A3:71:EE:64:4B:0A:DB:1E:82:48:1F:0C:E2:AF:AF:0B:85:5F");
user_pref("capability.principal.certificate.p0.subjectName", "CN=SDL PLC,O=SDL PLC,L=Berkshire,C=GB");

Then save the file and restart Firefox.

Server setting

For developers, it is important to note that the clipboard.jar file should be served correctly. Some servers will serve this file with a MIME type, or content type of text/plain, but this should be application/java-archive. You can inspect this in Firebug or other HTTP debugging tools.