开发者

firefox 5 and protocol file:// on http [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

in firefox 3, we could open file:/// in a web page (http://myserver.com/mypage.html). With that, we design a firefox Extension for open external application with a specific protocol. (like calc:// for open a link in calc program )

Now, we would use it on firefox 5, but the Gecko 2.0 refuse that. When i try to open a link, i have this backtrace in cosole :

Security Error: Content at http ://myserver.com/mypage.html may not load or link to file:///C:/test.odf.

It's Normal. Firefox 4 & 5 don't support this :

Firefox 4 Support for remote XUL has long been a potential security concern; support for it was disabled in Gecko 2.0. This also means you can't load XUL using file:// URLs unless you set the preference dom.allow_XUL_XBL_for_file to true. However, there is a whitelist that lets you specify sites that can still use remote XUL. The Remote XUL Manager extension lets you manage this whitelist.

source : https://developer.mozilla.org/en/using_remote_xul

i try to use remote XUL manager : it doesn't work. Same problem with adding dom.allow_XUL_XBL_for_file in about:config

I read this bugtracker https://bugzilla.mozilla.org/show_bug.cgi?id=595397 and my bug should not be.

This doesn't work on Firefox 4,5 under开发者_StackOverflow社区 windows XP or 7.

I don't now where i can't find some information,

Thanks for your help


Linking to local files was disallowed from remote files in the name of security; this safety check can be overridden by the user (but not without explicit user action).

  1. First, the user can install Local Link (Firefox extension), or
  2. Secondly, by disabling the security check (this is a little too detailed to post here, so I'll link to the Mozilla knowledgebase for this: http://kb.mozillazine.org/Links_to_local_pages_do_not_work).

As regards the calc:// protocol, I'm not sure why that's not handled automatically, but to set up a custom URL handler (on Windows), you can use the command-line:

ftype calc # view current binding
ftype calc=\path\to\calcProgram.exe %1

References:

  • Links to local pages don't work.
  • How can I add a custom url handler on Windows. Like iTunes itms://
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜