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”]

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


technorati tags:, , , , , ,

Blogged with Flock

5 Responses to “XUL Browser not open popup window”

  1. Satya Says:


    Currently iam working on customized Xul based browser, and for remote websites opened through this browser not opening popup windows. So i added this above code in prefs.js , but still no change. Is there anything else i need to do or help me in doing best.

    Thanks & Regards

  2. Satya Says:

    and i would like to expect the solution as soon as Possible . Thank you.

  3. jatazoulja Says:

    same problem here, how do we filter window.open, href=”_blank”?

    I think there’s more to this than that code alone…

  4. Brandon Says:

    Too bad things are like they are right now. I want things to change this November. They will if we do what we need to do.

  5. Wellington B. de Carvalho Says:

    This solution is not working. Maybe is out of date with some Xulrunner update.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: