Now to have full access to "otherDocument" I create my own
nsIXPCSecurityManager (which, for now, allways returns NS_OK) and set
that through a call to
nsIXPConnect->setSecurityManagerForJSContext(JSContextIFrameA,
myManager, HOOK_ALL)
Result: ACCESS DENIED. So I tried to also set:
nsIXPConnect->setSecurityManagerForJSContext(JSContextIFrameB,
myManager, HOOK_ALL)
Result: Still ACCESS DENIED.
Browsing through the source of mozilla i get the impression that
somehow the SecurityManager for a JSContext has to be set prior to the
JS_InitStandardClasses. Is this correct?
I'm also getting the impression that almost all mozilla code uses the
nsContentUtils::GetSecurityManager() which returns the singleton
nsIScriptSecurityManager.
So I wonder if it's even possible to have a custom
nsIXPCSecurityManager for a given JSContext.
Please advise..
Dennis
I totally over looked the capability.policy.* pref settings.
It seems like thet can solve my problem.