Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to enable the type of functionality allowed by netscape.security.PriviledgeManager.enablePriviledge("UniveralXPConnect")?

  • 4 réponses
  • 7 ont ce problème
  • 1 vue
  • Dernière réponse par broham

more options

I have an intranet web application that had (until recently) allowed users to open a folder on their local machine when clicking a link. In more recent versions of FireFox this functionality is not allowed on purpose from what I understand. Whey they try to do it now the following error is thrown:

TypeError: netscape.security.PrivilegeManager is undefined [Break On This Error]

netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

How can I go about allowing my users to have this type of functionality in the latest version of FireFox? Is it as simple as using an existing Add On? Do I need to write my own extension? If I need to write my own, can someone point me in the right direction for what I will need to do?

Thanks!

I have an intranet web application that had (until recently) allowed users to open a folder on their local machine when clicking a link. In more recent versions of FireFox this functionality is not allowed on purpose from what I understand. Whey they try to do it now the following error is thrown: TypeError: netscape.security.PrivilegeManager is undefined [Break On This Error] netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); How can I go about allowing my users to have this type of functionality in the latest version of FireFox? Is it as simple as using an existing Add On? Do I need to write my own extension? If I need to write my own, can someone point me in the right direction for what I will need to do? Thanks!

Toutes les réponses (4)

more options

I can't think of a way for an add-on to expose this feature to a webpage, although there may well be some technique of which I am not aware.

Why do users need this feature? I assume it's not simply to upload a file to your intranet, or is it? You might be able to use a Flash uploader; plugins might have more privileges than HTML.

more options
more options

I am using this feature to open a specific folder on the file system. Is there some sort of way to do this without enablePrivilege?

more options

Just to clarify, when I say "open a specific folder on the file system" I mean opening the path "C:\MyFolder\" in Windows Explorer