MozillaZine

omni.ja - Just Curious

Discussion about official Mozilla Firefox builds
L.A.R. Grizzly

User avatar
 
Posts: 4700
Joined: March 15th, 2005, 5:32 pm
Location: Akron, Ohio, USA

Post Posted January 1st, 2012, 12:31 pm

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
Firefox 39.0, Thunderbird 38.0.1 and SeaMonkey 2.33.1

Tony-E

User avatar
 
Posts: 8751
Joined: November 5th, 2004, 11:28 am

Post Posted January 1st, 2012, 12:43 pm

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.

L.A.R. Grizzly

User avatar
 
Posts: 4700
Joined: March 15th, 2005, 5:32 pm
Location: Akron, Ohio, USA

Post Posted January 1st, 2012, 12:56 pm

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
Firefox 39.0, Thunderbird 38.0.1 and SeaMonkey 2.33.1

muhahaa
 
Posts: 302
Joined: October 2nd, 2010, 8:56 am

Post Posted January 1st, 2012, 2:02 pm


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

Post Posted January 1st, 2012, 9:25 pm

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.

L.A.R. Grizzly

User avatar
 
Posts: 4700
Joined: March 15th, 2005, 5:32 pm
Location: Akron, Ohio, USA

Post Posted January 1st, 2012, 10:16 pm

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
Firefox 39.0, Thunderbird 38.0.1 and SeaMonkey 2.33.1

RyanVM
 
Posts: 1264
Joined: June 16th, 2004, 6:00 am
Location: Exton, PA

Post Posted January 2nd, 2012, 8:52 am

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.

L.A.R. Grizzly

User avatar
 
Posts: 4700
Joined: March 15th, 2005, 5:32 pm
Location: Akron, Ohio, USA

Post Posted January 2nd, 2012, 10:58 am

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
Firefox 39.0, Thunderbird 38.0.1 and SeaMonkey 2.33.1

morat
 
Posts: 1751
Joined: February 3rd, 2009, 6:29 pm

Post Posted February 12th, 2012, 2:08 pm

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"

patrickjdempsey

User avatar
 
Posts: 22727
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 12th, 2012, 6:45 pm

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

Post Posted February 12th, 2012, 8:09 pm

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: 1751
Joined: February 3rd, 2009, 6:29 pm

Post Posted February 12th, 2012, 8:45 pm

@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"):

patrickjdempsey

User avatar
 
Posts: 22727
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 12th, 2012, 8:59 pm

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

Post Posted February 13th, 2012, 3:07 pm

Bug 726656 was filed for the lack of optimization.

Return to Firefox Builds


Who is online

Users browsing this forum: No registered users and 6 guests