Subj : Re: midas, execCommand, cut, copy & paste To : netscape.public.mozilla.jseng,netscape.public.mozilla.xpcom From : Fredrik de Vibe Date : Wed Apr 16 2003 02:14 pm Benjamin Smedberg writes: > > This boggles my mind. execCommand works fine in mozilla 1.4a, and > > in the midas demo at http://www.mozilla.org/editor/midasdemo/ > > cut, copy and paste works fine. When I try to use these functions > > myself, however, they don't - they generete an > > NS_ERROR_DOM_XPCONNECT_ACCESS_DENIED exception with the message > > "Access to XPConnect service denied" code: "1011". > > At > http://lxr.mozilla.org/seamonkey/source/modules/libpref/src/init/all.js#456 > pref("capability.policy.allowclipboard.sites", > "http://www.mozilla.org"); Ah, revelation at last - thanks :-) . I thought about something like that, but I didn't think mozilla would allow access to a higher extent for it's 'own' site. I also fail to see the potential security issues wrt this, so if somebody would enlighten me here as well, I'd be grateful. -- --Fredrik "Just once, I wish we would encounter an alien menace that wasn't immune to bullets" -- The Brigader, "Dr. Who" .