Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

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.