...

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



rameshreddy74
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:

user_pref("signed.applets.codebase_principal_support",true);


in the html page I am adding the line:

netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');


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

fredmv
01-14-2004, 07:30 AM
http://www.codingforums.com/showthread.php?s=&threadid=17515

jkd
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.

rameshreddy74
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum