[xul-interop] Security manager

"Anthony Morgan" <[email protected]> Wed, 13 Aug 2008 17:59:34 +0100
Newsgroups gmane.comp.lang.xul.general
Message-ID <[email protected]>
--===============1233472684==
Content-Type: multipart/alternative; 
	boundary="----=_Part_62189_8384392.1218646774325"

------=_Part_62189_8384392.1218646774325
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello!

I've recently been playing with XUL and gecko, and have hit a small
stumbling block, namely understanding the security manager. I've been unable
to find documentation on this, anyone care to point me in the right
direction? I've hit "Security manager vetoed action" exception a few times
from privileged code, when trying to override native methods/properties.
Perhaps that's just not possible? I wanted to call
__defineSetter__('href',..) on window.location but couldn't delete the
property first as required. Then separately attempting to delete
browser.contentWindow.open raises the exception, although in this case you
can override it but that doesn't appear to do anything...

Thanks,
Tony Morgan

------=_Part_62189_8384392.1218646774325
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hello!<br><br>I&#39;ve recently been playing with XUL and gecko, and have hit a small stumbling block, namely understanding the security manager. I&#39;ve been unable to find documentation on this, anyone care to point me in the right direction? I&#39;ve hit &quot;Security manager vetoed action&quot; exception a few times from privileged code, when trying to override native methods/properties. Perhaps that&#39;s just not possible? I wanted to call __defineSetter__(&#39;href&#39;,..) on window.location but couldn&#39;t delete the property first as required. Then separately attempting to delete browser.contentWindow.open raises the exception, although in this case you can override it but that doesn&#39;t appear to do anything...<br>

<br>Thanks,<br>Tony Morgan<br><br></div>

------=_Part_62189_8384392.1218646774325--


--===============1233472684==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============1233472684==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

--===============1233472684==--