Firefox 安全模式是如何觸發的?

Firefox 安全模式是如何觸發的?

有沒有人知道 Firefox 在 Mac 上使用什麼檔案來觸發安全模式啟動?我使用的是 Mac,但我無法找出 Firefox 做了什麼來標記它需要以安全模式啟動。有一些方法可以繞過安全模式,但我正在尋找一種在程式啟動之前將其消滅在萌芽狀態的方法。

答案1

它使用命令列參數,而不是檔案。我相信在為 Mac 編譯的 Firefox 上也是如此。

$ firefox --help 
Usage: firefox [ options ... ] [URL]
       where options include:

X11 options
  --display=DISPLAY  X display to use
  --sync             Make X calls synchronous
  --g-fatal-warnings Make all warnings fatal

Firefox options
  -h or -help        Print this message.
  -v or -version     Print Firefox version.
  -P <profile>       Start with <profile>.
  -migration         Start with migration wizard.
  -ProfileManager    Start with ProfileManager.
  -no-remote         Open new instance, not a new window in running instance.
  -UILocale <locale> Start with <locale> resources as UI Locale.
  -safe-mode         Disables extensions and themes for this session.
  -jsconsole         Open the Error console.
  -browser           Open a browser window.
  -new-window  <url> Open <url> in a new window.
  -new-tab     <url> Open <url> in a new tab.
  -preferences       Open Preferences dialog.
  -search     <term> Search <term> with your default search engine.
  -private           Enable private browsing mode.
  -private-toggle    Toggle private browsing mode.
  -setDefaultBrowser Set this app as the default browser.

相關內容