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

搜索 | 用户支持

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

详细了解

Firefox starts in offline mode while sandboxed

  • 2 个回答
  • 5 人有此问题
  • 10 次查看
  • 最后回复者为 AnonymousUser

more options

I'm trying to run Firefox sandboxed for security reasons. Everything works except it always starts in Offline Mode. Do I need to allow access to something in particular to fix this? Below are the contents of my sandbox profile:

firefox - sandbox profile
http://codereview.chromium.org/379019/diff/1/2

(version 1) (deny default)

(allow file-write* file-read-data file-read-metadata

 (regex "^/Users/james/Downloads")
 (regex "^/Users/james/Library/Application Support/Mozilla")
 (regex "^/Users/james/Library/Application Support/Firefox")
 (regex "^/Users/james/Library/Preferences")
 (regex "^/Users/james/Library/PreferencePanes")
 (regex "^/Users/james/Library/Caches/Firefox")
 (regex "^/Users/james/Library/Caches/TemporaryItems")
 (regex "^/Applications/Firefox.app")
 (regex "^(/private)?/tmp/"))

(allow file-read-data file-read-metadata

 (regex "^/dev/autofs.*")
 (regex "^/Library/Preferences")
 (regex "^/Library/Internet Plug-Ins")
 (regex "^/Library/PreferencePanes")
 (regex "^/usr/share/icu")
 (regex "^/usr/share/locale")
 (regex "^/System/Library")
 (regex "^/Applications/Firefox.app")
 (regex "^/usr/lib")
 (regex "^/var")
 (regex #"Frameworks/SDL.framework")
Our Module Directory Services cache
 (regex "^/private/var/tmp/mds/")
 (regex "^/private/var/tmp/mds/[0-9]+(/|$)")
 (regex "^/Users/james"))

(allow mach* sysctl-read)

(import "/usr/share/sandbox/bsd.sb") (deny file-write-data

  (regex #"^(/private)?/etc/localtime$"
    #"^/usr/share/nls/"

#"^/usr/share/zoneinfo/"))

(allow process-exec

 (regex "^/Applications/Firefox.app"))
 

(allow network*)

(allow file-read-data (regex #"^/System/Library/Fonts"))  ; 10.5.6 (allow file-read-data (regex #"^/Library/Fonts"))  ; 10.6 (allow mach-lookup (global-name "com.apple.FontObjectsServer"))  ; 10.5.6 (allow mach-lookup (global-name "com.apple.FontServer"))  ; 10.6


This happened

Every time Firefox opened

== Running

I'm trying to run Firefox sandboxed for security reasons. Everything works except it always starts in Offline Mode. Do I need to allow access to something in particular to fix this? Below are the contents of my sandbox profile: ;; ;; firefox - sandbox profile ;; ;; http://codereview.chromium.org/379019/diff/1/2 (version 1) (deny default) (allow file-write* file-read-data file-read-metadata (regex "^/Users/james/Downloads") (regex "^/Users/james/Library/Application Support/Mozilla") (regex "^/Users/james/Library/Application Support/Firefox") (regex "^/Users/james/Library/Preferences") (regex "^/Users/james/Library/PreferencePanes") (regex "^/Users/james/Library/Caches/Firefox") (regex "^/Users/james/Library/Caches/TemporaryItems") (regex "^/Applications/Firefox.app") (regex "^(/private)?/tmp/")) (allow file-read-data file-read-metadata (regex "^/dev/autofs.*") (regex "^/Library/Preferences") (regex "^/Library/Internet Plug-Ins") (regex "^/Library/PreferencePanes") (regex "^/usr/share/icu") (regex "^/usr/share/locale") (regex "^/System/Library") (regex "^/Applications/Firefox.app") (regex "^/usr/lib") (regex "^/var") (regex #"Frameworks/SDL.framework") ; Our Module Directory Services cache (regex "^/private/var/tmp/mds/") (regex "^/private/var/tmp/mds/[0-9]+(/|$)") (regex "^/Users/james")) (allow mach* sysctl-read) (import "/usr/share/sandbox/bsd.sb") (deny file-write-data (regex #"^(/private)?/etc/localtime$" #"^/usr/share/nls/" #"^/usr/share/zoneinfo/")) (allow process-exec (regex "^/Applications/Firefox.app")) (allow network*) (allow file-read-data (regex #"^/System/Library/Fonts")) ; 10.5.6 (allow file-read-data (regex #"^/Library/Fonts")) ; 10.6 (allow mach-lookup (global-name "com.apple.FontObjectsServer")) ; 10.5.6 (allow mach-lookup (global-name "com.apple.FontServer")) ; 10.6 == This happened == Every time Firefox opened == Running

所有回复 (3)

more options

I have exactly the same problem...

more options

Same problem using Fedora-13

more options

This solved the problem for me.

Right-click on the about:config page to open the right-click context menu and use "New > Boolean" to create a new Boolean pref.

Name: network.manage-offline-status Value: false