Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How to prevent version 13.0 from following symlinks

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

more options

We are developing a test framework in the the test directory.

Some other folders contain a soft link (ln -s) to file test.html inside the test directory.

In previous versions when dragging the link to the browser ,it wasn't resolved. In that way we could scope test.html to the files in that module.

Now, the file protocol always points to the test dir.

Is there any way to prevent firefox from following the symlinks any longer?

We are developing a test framework in the the test directory. Some other folders contain a soft link (ln -s) to file test.html inside the test directory. In previous versions when dragging the link to the browser ,it wasn't resolved. In that way we could scope test.html to the files in that module. Now, the file protocol always points to the test dir. Is there any way to prevent firefox from following the symlinks any longer?

由txema.gonz于修改

所有回复 (12)

more options

A possible workaround is to install an apache server and create a symbolic link inside the root dir (/var/www in my case) to the project dir.

Then you can switch to the http protocol.

This solutiion works partially but enforces to all the developers to install apache.

由txema.gonz于修改

more options

The worst thing about this is the fact that any query string appended to the original url is obliterated when the symlink is followed, which even further renders testing scenarios unusable.

Running apache and addressing the test page does workaround the issue, but this is unnecessary for other browsers.

I am running FF 13 on OSX.

more options

Possibly related (unsolved) thread: cannot open local shtml file -- symlink resolves to page and display open/save/cancel dialog.

more options

Do you think we should open a ticket somewhere?

(I guess there is one)

more options

I often miss bugs in the bug tracking system Buzilla but you could take a look and see whether you find it. If you file a new bug and it is recognized as a duplicated, someone will add a note to your bug so you can find the earlier one.

more options

Seems that nobody has posted something similar there.

I've been taking a look at this page: Document Loading - From Load Start to Finding a Handler amongst others.

I think the error might be in the necko package (on netwerk/protocol/file directory). Before disturbing the developers I want to:

  1. Write a page with a file protocol link and check out whether this keeps failing. If it doesn't fail here, then the problem should be in the address bar.
  2. Debug nsFileProtocolHandler.cpp

When I get done with all of these I'll create the ticket and put here the link to it.

Thanks to all.

more options

Tested => Firefox has the same behaviour with the the links, so:

  • it's not a problem with the address bar.
  • Our next stop is in the file handler protocol.
more options

Same behaviour on Linux as on OSX. Even the old links pulled from history are replaced with link targets. And, this behaviour has been carried over to 14.0.

由selkovjr于修改

more options

Continues in 15.0.

more options

And in 16.0 beta.

more options

Now in 16.0 beta 6

more options

Same in 17.0 and in today's Nightly.

Is there a plan for fixing it? It is a major regression -- I cannot open a file in Firefox.