搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Access local file from script denied

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
more options

Since long time, we use firefox in our Document Management System to open files on the lan of our compagny with a script in javascript containing: window.open('file:///F:/asamplefile.odt','document','width=50,height=10'); with the configuration of firefox: lockPref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); lockPref("capability.policy.localfilelinks.sites", "http://mylanserver"); lockPref("capability.policy.policynames", "localfilelinks"); lockPref("capability.principal.codebase.p0.granted", "UniversalFileRead"); lockPref("capability.principal.codebase.p0.id", "http://mylanserver"); lockPref("capability.principal.codebase.p0.subjectName", ""); Since we upgraded to FF 60.0.1 and more, it doesn't work any more. the error is: Access to file 'file:///F:/asamplefile.odt' from script denied Is it possible with a new configuration in FF 63 ?

Since long time, we use firefox in our Document Management System to open files on the lan of our compagny with a script in javascript containing: window.open('file:///F:/asamplefile.odt','document','width=50,height=10'); with the configuration of firefox: lockPref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); lockPref("capability.policy.localfilelinks.sites", "http://mylanserver"); lockPref("capability.policy.policynames", "localfilelinks"); lockPref("capability.principal.codebase.p0.granted", "UniversalFileRead"); lockPref("capability.principal.codebase.p0.id", "http://mylanserver"); lockPref("capability.principal.codebase.p0.subjectName", ""); Since we upgraded to FF 60.0.1 and more, it doesn't work any more. the error is: Access to file 'file:///F:/asamplefile.odt' from script denied Is it possible with a new configuration in FF 63 ?