Re: midas, execCommand, cut, copy & paste

Benjamin Smedberg <[email protected]> Wed, 16 Apr 2003 06:59:23 -0400
Newsgroups gmane.comp.mozilla.devel.jseng,gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
At 
http://lxr.mozilla.org/seamonkey/source/modules/libpref/src/init/all.js#456
pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");

So to use this in your own application you would need to enable 
security... try one of the following:
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); 
(this might work for copy)
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
(this might work for cut/paste)
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
(this might just work)

If you're doing this from website JS (as opposed to the local 
filesystem), you will need a signed script.

--BDS