Henri Sivonen wrote:
> I'm writing a test harness that loads a document from the Web in an
> iframe and then walks the DOM tree of that document (for bug 31961).
> However, I'm not allowed to do that by default due to the sameOrigin
> policy.
>
> I think I should call
> netscape.security.PrivilegeManager.enablePrivilege(privilegename);
> but which privilegename should I use?
it's "UniversalBrowserRead."
>
> My test harness is intended to be run from the local drive or from a
> Bugzilla attachment.
It'll work from the local hard drive. If you want it to run as a
Bugzilla attachment, you'll have to sign it or enable codebase
principals (see
http://www.mozilla.org/projects/security/components/signed-scripts.html)
-Mitch