omni.ja - Just Curious

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

omni.ja - Just Curious

Post by L.A.R. Grizzly »

I've noticed that omni.jar is now omni.ja. I'm just curious as to the purpose of the extension change. Thanks.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
User avatar
Tony-E
Posts: 8778
Joined: November 5th, 2004, 11:28 am

Re: omni.ja - Just Curious

Post by Tony-E »

I believe it is due to the Windows system restore feature.

Previously if Windows system restore was used it could result in a messing up the Firefox installation folder, leaving files from 2 different versions of Firefox which usually caused Firefox to stop working. Changing the name to omni.ja should help prevent this from happening.
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Re: omni.ja - Just Curious

Post by L.A.R. Grizzly »

Tony-E wrote:I believe it is due to the Windows system restore feature.

Previously if Windows system restore was used it could result in a messing up the Firefox installation folder, leaving files from 2 different versions of Firefox which usually caused Firefox to stop working. Changing the name to omni.ja should help prevent this from happening.


Thanks Tony-E. My mind can rest now (what's left of it). :|
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
muhahaa
Posts: 302
Joined: October 2nd, 2010, 8:56 am

Re: omni.ja - Just Curious

Post by muhahaa »

KWierso
Posts: 8829
Joined: May 7th, 2006, 10:29 pm
Location: California

Re: omni.ja - Just Curious

Post by KWierso »

Yeah, apparently .jar files don't get included in the System Restore points, but other parts of Firefox are. So if you do a system restore to a point where the restore point is restoring a previous version of Firefox, you'll get a mismatched bunch of Firefox files when you're done.

But .ja files do get included in the restore points, so doing a system restore should now get Firefox's important files all restored together making Firefox actually work when you try to run it.
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Re: omni.ja - Just Curious

Post by L.A.R. Grizzly »

KWierso wrote:Yeah, apparently .jar files don't get included in the System Restore points, but other parts of Firefox are. So if you do a system restore to a point where the restore point is restoring a previous version of Firefox, you'll get a mismatched bunch of Firefox files when you're done.

But .ja files do get included in the restore points, so doing a system restore should now get Firefox's important files all restored together making Firefox actually work when you try to run it.


Makes sense. I've had Windows since Win95 and have never had to use System Restore (I guess I'm the lucky one), but it's nice to know it's there just in case it's needed.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
RyanVM
Posts: 1264
Joined: June 16th, 2004, 6:00 am
Location: Exton, PA

Re: omni.ja - Just Curious

Post by RyanVM »

Yeah, they got bit because a new release coincided with Microsoft's Patch Tuesday, and surprise, a lot of people found themselves having to roll back to prior restore points. Mozilla saw a huge surge in crashes from it. They've taken some steps to improve the situation for a mismatched omnijar in the future, but the renaming at least makes that likelihood of occurring more remote.
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Re: omni.ja - Just Curious

Post by L.A.R. Grizzly »

RyanVM wrote:Yeah, they got bit because a new release coincided with Microsoft's Patch Tuesday, and surprise, a lot of people found themselves having to roll back to prior restore points.


It figures. #-o
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: omni.ja - Just Curious

Post by morat »

Is the omni.ja archive in Firefox 10 and 11 still optimized? If not, why not?

I don't get an error when I list files (with Info-ZIP UnZip) like in older versions.

Code: Select all

unzip.exe -l omni.ja | find "browser.xul"
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: omni.ja - Just Curious

Post by patrickjdempsey »

It's possible that changing the extension is enough for it to not cause the error?
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
RyanVM
Posts: 1264
Joined: June 16th, 2004, 6:00 am
Location: Exton, PA

Re: omni.ja - Just Curious

Post by RyanVM »

There was a bug filed about the rename breaking the optimization process, but a cursory check isn't finding it offhand. Might have been fixed on mozilla-central (13) already.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: omni.ja - Just Curious

Post by morat »

@patrick

Firefox 9.0 omni.jar

Code: Select all

unzip.exe -l omni.jar | find "browser.xul"

warning [omni.jar]:  5454069 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [omni.jar]:  reported length of central directory is
  -5454069 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...

   131034  01/01/10 00:00   chrome/browser/content/browser/browser.xul
     3189  01/01/10 00:00   chrome/toolkit/content/global/test-ipcbrowser.xul

Firefox 10.0 omni.ja - same output when omni.ja is renamed to omni.jar

Code: Select all

unzip.exe -l omni.ja | find "browser.xul"

   133993  01/29/12 07:36   chrome/browser/content/browser/browser.xul
     3189  01/29/12 07:36   chrome/toolkit/content/global/test-ipcbrowser.xul

I assume if Info-ZIP UnZip gives no error message, then the file is a regular zip file i.e. not optimized.

@Ryan

I noticed the optimizejars.py script no longer works in Firefox 10 source.

http://mxr.mozilla.org/mozilla-release/ ... izejars.py

Code: Select all

if not jarfile.endswith(".jar"):
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: omni.ja - Just Curious

Post by patrickjdempsey »

It's mentioned here:
https://bugzilla.mozilla.org/show_bug.cgi?id=701875#c65

But no follow-up bug appears to have been made.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
RyanVM
Posts: 1264
Joined: June 16th, 2004, 6:00 am
Location: Exton, PA

Re: omni.ja - Just Curious

Post by RyanVM »

Bug 726656 was filed for the lack of optimization.
Post Reply