This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I disable safe-mode in Firefox 17.0.1?

  • 4 replies
  • 1 has this problem
  • 4 views
  • Last reply by 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.

All Replies (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.