Boris Zbarsky wrote:
> huazilin wrote:
> > 1)  Implementing nsISecurityCheckedComponent (to allow access to
> > specific
> >     properties or methods).
> > 2)  Implementing nsIClassInfo with the right magic flags (claiming to
> > be a DOM
> >     class?).  This will, for example, allow same-origin access to
>
> These are mutually exclusive, by the way.  So do one or the other.
>
> >     But I can't understand the suggestion,more concretely speaking,I
> > can't follow even one step.Can someone give me some implement
> > example.Thanks very much...
>
> Didn't I say at the time to look at the way XMLHttpRequest works in Gecko
> 1.8.0.x?  See the classinfo stuff in nsXMLHttpRequest.cpp and
> nsXMLExtrasModule.cpp there if you want to do classinfo; I believe the 
> category
> manager stuff in nsXMLExtrasModule.cpp is what you need to set up 
> constructors.
>
> -Boris

Thank you for your reply!
But I also have some question.
Are there three methods in What your above suggestion or one method
,but need three steps for eventually solve the problem?
Because my poor knowlege  about the XPCOM and my poor english,I can't
understand every step clearly. If you have time and have  some
implementing examples send to me ,I will appreciate you very very much.
May be you could give me a simple example which is a xpcom component
implementing the security access from javascript,but don't need
authorize the UniversalXpconnect privileges.
If you have some demo,you can send it to my mailbox.
My email is :[EMAIL PROTECTED]
Hoping your reply,thanks .

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to