We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

UniversalFileRead parameter is not working in FireFox12

  • 2 个回答
  • 12 人有此问题
  • 1 次查看
  • 最后回复者为 fgallnii

more options

hi , I am using FireFox 12 to test my application. My application is fetching file path to perform some validations.

In js file i have added following parameter and it is working fine with prior FF12 version netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");

If i use alert('UniversalXPConnect = '+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")); parameter then i can get file path in JS file.

Please help.

hi , I am using FireFox 12 to test my application. My application is fetching file path to perform some validations. In js file i have added following parameter and it is working fine with prior FF12 version netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead"); If i use alert('UniversalXPConnect = '+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")); parameter then i can get file path in JS file. Please help.

由ameetbhat于修改

所有回复 (2)

more options

You probably need to sign your script.

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

more options

Hi,

I have the same inconvenience with a Web product (Documentum) since I have upgraded my Firefox to the version 12.

I have tried with no success to override UniversalFileRead privilege directly in the browser preferences located in my Firefox user profile (pref.js) as proposed in this thread: http://www.mozilla.org/projects/security/components/jssec.html (or this one: http://www.mozilla.org/projects/security/components/per-file.html)

Is there any additionnal ideas to bypass this restriction?

Thanks in advance.