Thanks Mr. Boris for the information,

There is one issue related to setting preferences.

When I deploy my application on local apache(or on the web) server
setting the preferences works for any code from localhost(or any
particular domain).
user_pref("capability.principal.codebase.p0.granted",
"UniversalXPConnect");
user_pref("capability.principal.codebase.p0.id", "http://localhost:
8080");
user_pref("capability.principal.codebase.p0.subjectName", "");

on setting these 3 preferences the solution works fine.


But, if I access my HTML pages directly from the filesystem, and set
the following 3 preferences.
user_pref("capability.principal.codebase.p1.granted",
"UniversalXPConnect");
user_pref("capability.principal.codebase.p1.id", "file://");
user_pref("capability.principal.codebase.p1.subjectName", "");

setting the preferences donot work.

How can I set the preferences which allow any code residing in the
filesystem or in a particular folder in the filesystem extended
privileges.

Thanks,
Mayank.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to