Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to supress security prompt in Mozilla browser

    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

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •