搜索 | 用户支持

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

Learn More

How to disable sandbox testing on Firefox startup

  • 1 个回答
  • 0 人有此问题
  • 11 次查看
  • 最后回复者为 cor-el

more options

I found that when starting Firefox on my school's WiFi, it starts up very slowly. Using `strace`, I found that it was taking it's sweet time making a DNS request to try to resolve my computer's `/etc/hostname`. After searching the Firefox source code with https://searchfox.org/mozilla-central/source/, I found that the only occurrence of `/etc/hostname` was in [SandboxTestingChildTests.h](https://searchfox.org/mozilla-central/source/security/sandbox/common/test/SandboxTestingChildTests.h). So I was wondering if it's possible to disable these tests when Firefox starts up.

I found that when starting Firefox on my school's WiFi, it starts up very slowly. Using `strace`, I found that it was taking it's sweet time making a DNS request to try to resolve my computer's `/etc/hostname`. After searching the Firefox source code with https://searchfox.org/mozilla-central/source/, I found that the only occurrence of `/etc/hostname` was in [SandboxTestingChildTests.h](https://searchfox.org/mozilla-central/source/security/sandbox/common/test/SandboxTestingChildTests.h). So I was wondering if it's possible to disable these tests when Firefox starts up.

所有回复 (1)

more options

Those files in a test directory are only to ensure that Firefox is working properly and test a lot of features to make sure that everything works. Those tests aren't run in the normal use case, but are part of the compilation process, so if it hangs with the sandbox for you then you may have a problem with accessing some system data due to sandbox restrictions.

You can try Firefox from the official Mozilla server if you currently use a version from the repositories of your Linux distribution to see if it behaves differently.