Re: midas, execCommand, cut, copy & paste

Fredrik de Vibe <[email protected]> 16 Apr 2003 13:14:59 +0200
Newsgroups gmane.comp.mozilla.devel.jseng,gmane.comp.mozilla.devel.xpcom
Organization UiO
Message-ID <[email protected]>
Benjamin Smedberg <[email protected]> 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"