View Full Version : How to supress security prompt in Mozilla browser

01-14-2004, 07:02 AM
My code is running in Mozilla. I have two frames. From the first frame if I am trying to load a page from a different domain in the next frame. I was getting access denied. I solved this problme by editing the preferences.js
to add a line:


in the html page I am adding the line:


I am able to access the page but I am getting an alert saying the browser has requested for enhanced previledges.
I want to supress it as it is creating trouble for the clients to see every time this alert when the he loads the page.

Is there a way to do it? Can I give the previledges automatically when the page gets loaded so that I need not see this alert every time?

What if client is having a intranet? He does not need the security features which is typically needed in an internet environment.
Please Help

01-14-2004, 07:30 AM

01-14-2004, 12:40 PM
I went ahead and moved the thread instead of deleting it. Now, as for the question, think about what you're asking for one second. What you're asking for is a serious security vulnerability in Mozilla, which simply doesn't exist thankfully. If you run your web app from behind a chrome:// URI, then you should be able to use these privileges without asking for them. But that requires putting the file in the chrome directory first.

01-16-2004, 06:06 AM
Thanks for the reply. We thought of keeping it as it is. It is only for the first time that the alert message comes. Once the client gives the permission then next time onwards he can browse through out that session with out any further prompts.