XUL Browser not open popup window

To make the XUL Browser to open popup window you have to set the following priviledge in the prefs.js

( Which is in Corresponding application folder of Application Support folder ).


netscape.security.PrivilegeManager.enablePrivilege(“UniversalXPConnect UniversalBrowserWrite”);

You can program it like the following one.

var prefManager = Components.classes[“@mozilla.org/preferences-service;1”]
.getService(Components.interfaces.nsIPrefBranch);

prefManager.setCharPref(“capability.principal.codebase.p0.granted”,”UniversalXPConnect UniversalBrowserWrite”);

prefManager.setCharPref(“capability.principal.codebase.p0.id”,”http://localhost”);

technorati tags:, , , , , ,

Blogged with Flock

Advertisements