為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I disable safe-mode in Firefox 17.0.1?

  • 4 回覆
  • 1 有這個問題
  • 4 次檢視
  • 最近回覆由 BlueHelix

more options

I'm creating a kiosk environment and I have the majority of firefox locked down using plugins. I need to disable safe-mode as part of the lock down requirements.

I've attempted to do this by modifying the omni.ja archive using the following steps:

1) Downloaded the "optimizejars.py" script from the firefox repo. 2) Ran the script using "python optimizejars.py --deoptimize .\ .\ .\" 3) Changed the extension to ".zip" 4) Unzipped the archive using Windows 7 unzip utility 5) Modified the contents of "/chrome/browser/content/browser/safeMode.xul" 6) Re-zipped the archive using Windows 7 unzip utility 7) Renamed extension to ".ja" 8) Ran the python script again as previously, except with the --optimize flag. 9) Placed it back into the mozilla firefox folder.

I've tried the script using the standard python interpreter version 2.7.3. (both x86 version and amd64 version on the off chance that it would make a difference). I've also tried this using the ActiveState python interpreter version 2.7.2.5 (again, both x86 and amd64 versions)

No matter what I try, after I replace the omni.ja file with my modified version, firefox crashes on startup. I've also tried these steps exactly the same way without modifying anything in omni.ja. Just going through the process of unzipping, using the script, zipping back, and placing in the firefox folder...still no go.

Any help would be appreciated.

I'm creating a kiosk environment and I have the majority of firefox locked down using plugins. I need to disable safe-mode as part of the lock down requirements. I've attempted to do this by modifying the omni.ja archive using the following steps: 1) Downloaded the "optimizejars.py" script from the firefox repo. 2) Ran the script using "python optimizejars.py --deoptimize .\ .\ .\" 3) Changed the extension to ".zip" 4) Unzipped the archive using Windows 7 unzip utility 5) Modified the contents of "/chrome/browser/content/browser/safeMode.xul" 6) Re-zipped the archive using Windows 7 unzip utility 7) Renamed extension to ".ja" 8) Ran the python script again as previously, except with the --optimize flag. 9) Placed it back into the mozilla firefox folder. I've tried the script using the standard python interpreter version 2.7.3. (both x86 version and amd64 version on the off chance that it would make a difference). I've also tried this using the ActiveState python interpreter version 2.7.2.5 (again, both x86 and amd64 versions) No matter what I try, after I replace the omni.ja file with my modified version, firefox crashes on startup. I've also tried these steps exactly the same way without modifying anything in omni.ja. Just going through the process of unzipping, using the script, zipping back, and placing in the firefox folder...still no go. Any help would be appreciated.

所有回覆 (4)

more options

Hello BlueHelix, see if you can find something useful in : https://support.mozilla.org/en-US/questions/664785

thank you

more options

This is actually my original reference for the steps I took. The issue is that any omni.ja file I put into the firefox folder causes firefox to crash. It doesn't actually matter if I make any changes to the contents. It appears to have something to do with the act of re-zipping the archive. I would have posted back to that thread, but it was closed, so i made a new one.

more options

Works here on Linux.

  • view-source:resource:///chrome/browser/content/browser/safeMode.xul

Make sure to use an editor that supports Unix line breaks (line feeds).


Get the raw optimizejars.py file via the link on this page:

optimizejars.py --deoptimize ./ ./ ./
optimizejars.py --optimize ./ ./ ./
more options

I got the version I'm using from the mercurial repo

"http://hg.mozilla.org/releases/mozilla-release/file/c23c45132139/config/optimizejars.py"

But I ran a diff on that file with the one you suggested in the link just in case and they are identical. I use notepad++ for quick text editing which works well with unix style breaks and many other formats. Operating system SHOULD be irrelevant as far as python or archive format is concerned.