Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Run Safari 4 Beta in Snow Leopard Web Browsers
I, like many others, really liked the tabs-on-top look the Safari 4 Beta had, and felt cheated when it was removed from the final version. It's not really devastating to be missing this, but as a laptop user, I want to have every centimeter of screen for something meaningful.

I forgot to back up the Beta application, but I did keep the installer. Using Pacifist, I unpacked the application, and tried to run it. However, at least as of 10.6, the Safari 4 beta won't launch.

Luckily, all you need to do is replace the Beta's info.plist and version.plist files with those from Safari 4 Final. These are found in the application bundle (Control-click and pick Show Package Contents from the pop-up menu). You might also want to replace useragents.plist from within Resources. For safety, back up your preferences before you run Safari 4 Beta.

I have not found any issues running this, and the only minor oddity was an initial lack of a URL entry box. I customized the toolbar and dragged it back on, and that worked fine. The best part? The Beta will use the most recently installed WebKit, and thus gets much of the same speed boost as the final version. I hope this helps someone; I know I'm happy.
    •    
  • Currently 3.00 / 5
  You rated: 2 / 5 (18 votes cast)
 
[14,653 views]  

10.6: Run Safari 4 Beta in Snow Leopard | 33 comments | Create New Account
Click here to return to the '10.6: Run Safari 4 Beta in Snow Leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I wish I'd thought of this...
Authored by: gabester on Oct 14, '09 07:38:13AM

Wow... now I can get back to my usual workflow. I much prefer tabs on top for its conservation of screen real estate and the ability to hack the titlebar colors. The downside is that the top sites do not display correctly but it's a worthy sacrifice. Thanks for figuring this out, Ben! g=



[ Reply to This | # ]
Mini-hint - save Safari 4 beta as a separately named app
Authored by: gabester on Oct 15, '09 08:38:29PM

To those below who are concerned with updates, I still have the regular Safari 4.0.3 in my /Applications folder; I keep my customized Safari4TabsOnTop.app in my ~/Applications folder. Both can run at the same time. I don't store passwords so I can't speak to that and History appears to be updated by both apps separately so only one version will persist after a simultaneous browsing session, but that's to be expected since the same resource is being accessed by two separate processes. g=



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: V.K. on Oct 14, '09 09:53:55AM

please correct me if I'm wrong but I think that doing this will break the code signature for safari and you will not be able to save any safari passwords in the keychain after that.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Dr. T on Oct 14, '09 10:09:05AM

This seems risky because the beta version cannot be updated. Updates 4.0.2 and 4.0.3 had security components. The extra risk seems too great just to get tabs in a different location.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Anonymous on Oct 14, '09 01:37:58PM

I share V.K. and Dr. T.'s concerns. It should be a selectable feature; not a hack.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: iBookmaster on Oct 14, '09 03:41:31PM

I actually saved the Safari4.0BetaSecUpdateLeo.dmg which has security updates in it. What I did is only replace the Safari app itself but leave all other items as is with the full version that are placed in the system, library and Users folders. Should be ok but no, it can't be updated the way it should. I'll keep doing this little trick for updates. I'll put the full version back in my applications folder to update it the way it should be. That way I'll get the system updates. Then replace the app with the beta to get the tabs on top. I'm pretty sure we will be able to save passwords too.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Dr. T on Oct 15, '09 09:49:00AM

You are incorrectly assuming that security updates are always extra files. Sometimes the main Safari application is modified.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: zo219 on Oct 14, '09 10:08:25PM
I am genuinely baffled by this claim that tabs on top saves screen real estate. Tabs are tabs, wherever they're located. The only way to gain real real estate is to hide them.

[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Anonymous on Oct 15, '09 12:21:17AM

That's because the tabs appeared in the top of the browser where the website address showed up (ie alongside the traffic light buttons).

Now the tabs appear in the viewing window and therefore take up space.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Camel on Oct 15, '09 02:57:07PM

I'm using just the Beta app (no install from Pacifist) and replacing the .plist files and it works great! Security components from 4.0.3 are present, Autofill works with no hassles. Had to give up a many year long relationship with Pithhelmet (RIP, sniff) but am finding it's easy to make custom rules in GlimmerBlocker.

Bravo Mr. Rockhold!



[ Reply to This | # ]
Autofill Doesn't Work Now...but Could It?
Authored by: Camel on Oct 16, '09 12:27:20PM
Sorry folks, I was mistaken in my last post: Autofill doesn't work completely . Values for username are filled in but passwords are not, nor will they be saved despite prompting. There is some kind of break between the Autofill "Users and Passwords" and the Keychain. The information in the former does not match the latter: many names and passwords are missing; in as many others Autofill "Users and Passwords" are duplicated many times over. In any case, information cannot be deleted, in whole or in part, from Autofill "Users and Passwords." I am sure that clever minds could hack Autofill to work but I'm not sure where to start: in a preference file, like com.apple.Safari, or somewhere else? If anyone has insight I'd like to put it to work.

[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: aqsalter on Oct 16, '09 07:52:56PM

Is this ever going to come back? It was awesome for power users... I don't even think it was that confusing for normal users...



[ Reply to This | # ]
Setup RE: 10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Camel on Oct 18, '09 11:14:21AM

Upon request, here is my successful setup for running Safari 4 Beta in Snow Leopard:

1. Save Safari 4 Beta app on external drive.

2. Install Safari 4.0.3 Final, restart.

3. Open Safari 4.0.3 Final package contents. Copy info.plist, version.plist, and useragents.plist from within Resources.

4. Delete Safari 4.0.3 Final.

5. Copy Safari 4 Beta to Applications folder.

6. Open Safari 4 Beta package contents. Copy info.plist, version.plist, and useragents.plist to Resources. Restart.

7. Voila! Safari 4 Beta runs on Snow Leopard. Download Webkit, it will run too using a Safari 4 Beta type interface. For future Safari Final upgrades, simply repeat these procedures.

CAVEATS: Don't delete com.apple.safari from Preferences. If you do, Safari 4 Beta will restart with a Safari 4 Final interface that cannot be changed.

Also, as noted earlier, Autofill only partially works. I am still looking for guidance/co-conspirators who are willing to hack Safari 4 Beta or the preferences files for full compatibility with Autofill and Keychain.

Hope this helps.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: ale.dakrua on Oct 18, '09 11:27:49AM

How can I download the Beta version of Safari..?
thanks



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: Camel on Oct 18, '09 03:03:48PM

Apple doesn't post it anymore, if you search the internet for a file of this name:

Safari4.0BetaSecUpdateLeo.dmg

You should find someone who has posted it for download.



[ Reply to This | # ]
Solution to code signature/Autofill/Keychain incompatibility?
Authored by: Camel on Oct 19, '09 12:49:29PM

Folks,

I'm wondering: in the hint we replace the Safari 4 Beta's info.plist and version.plist files with those from Safari 4 Final. Has anyone tried to do the same thing with the CodeResources alias and the _CodeSignature folder to achieve compatibility with code signature/Autofill/Keychain? If so, what were the results?

I've not done this yet myself because I only have sporadic access to a machine running Snow Leopard.



[ Reply to This | # ]
Solution to code signature/Autofill/Keychain incompatibility? -> not quite
Authored by: Camel on Oct 19, '09 01:59:53PM

Folks,

I tried to achieve compatibility with code signature/Autofill/Keychain by replacing the CodeResources alias and the _CodeSignature folder on Safari 4 Beta with the versions from Safari 4 Final, no dice.

Digging more, I noticed if you open the WebApplicationCore.bundle package we find the following:

version.plist
_CodeSignature (folder)
CodeResources (alias)
Info.plist
MacOS (folder)

Perhaps replacing some or all of these from S4F might work?



[ Reply to This | # ]
Solution to code signature/Autofill/Keychain incompatibility? -> not quite
Authored by: petersconsult on Oct 28, '09 04:49:14PM
I just successfully re-signed the beta with codesign.

to do this, you need to create a Code Signing certificate in Keychain Access, see here:
http://developer.apple.com/mac/library/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW2

then you open Terminal (do *not* 'sudo su' for this!) and type:
codesign -s CertificateName -f PathToSafariBeta
I hope this helps!
Peter

[ Reply to This | # ]
Code Signing = Solution to code signature/Autofill/Keychain incompatibility?
Authored by: Camel on Nov 11, '09 05:41:44PM

Peter,

Are you saying that by creating a Code Signing certificate in Keychain Access and entering the relevant lines in Terminal that you fix Safari 4 beta's compatibility with Keychain? Autofill values in the browser are not only complete but remembered in Keychain?

Please advise. I'm going to try this out on another machine tomorrow. Sadly, I just noticed that Safari 4.0.4 still doesn't have a progress bar, etc.

Thanks for your work on this.

Camel



[ Reply to This | # ]
Code Signing = Solution to code signature/Autofill/Keychain incompatibility?
Authored by: petersconsult on Nov 12, '09 07:44:10AM
Hi Camel,
Yes, that is indeed what i'm saying. I've made a copy available http://www.mediafire.com/?mjxg1cwscjn
That way you can see for yourself :-)
Cheers,
Peter

[ Reply to This | # ]
Code Signing = You are Da Man
Authored by: Camel on Nov 12, '09 11:44:03AM

Peter,

I've downloaded your file and followed your instructions. It works great! Using Safari_beta on 10.6.2 with the latest version of Safari (4.0.4) in the Applications folder everything works fine: Autofill/Keychain works again, everything is zippy now and it loads in 64-bit. I could not have asked for more, thank you very much.

IMO, as you have achieved full compatibility - unless anyone says otherwise? - you should repost this hint.

Bravo!



[ Reply to This | # ]
Code Signing = Ben Da Man, You Da Man!
Authored by: petersconsult on Nov 13, '09 04:02:50AM
Hi again Camel,
That's very nice of you, but all the glory rightfully goes to Ben Rockhold.
I just flipped through the developer docs to the chapter on CodeSigning, so if thanks are due, they must be given to Apple's good documentation :-)
If Ben or Rob would like to re-post all of the good info in this hint+thread, and include the file as a demo, I think that it'd be a good idea, but i can't rightfully do it myself...
Be Well!
Peter

[ Reply to This | # ]
I don't mean to insist
Authored by: petersconsult on Nov 14, '09 03:20:02PM
I doubt anyone is still reading this, but there was one last problem with this configuration:
If Safari and SafariBeta were not running, no matter how often you told the "internet preferences" that SafariBeta was your choice, clicking a link in, say, Mail, would open it in Safari (current).
So, I just went into the version.plist file and changed the CFBundleIdentifier from com.apple.safari to com.apple.Safari_beta
also changed CFBundleName to Safari_beta
Finally, I made a duplicate of the preference file (~/Library/Preferences/com.apple.safari) and called it, you guessed it, com.apple.Safari_beta
Now Safari_beta is treated as a proper app by the MacOS 10.5 or 10.6.
I will post the new app asap
Be Well,
Peter

[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: brh on Oct 19, '09 02:43:06PM

What worked for me was just changing the version number in Safari 4 Beta's info.plist to something closer to the current version (I think I dropped it down like .01 or something).

One problem I did notice was that some things would try to open in the Beta and some in 4 Final, and it got confusing having two Safaris battling it out. That seemed to sort of stop on its own, but I still don't think hacking around is a very good solution… Wish they would just let the users who want their screen real estate back have it!



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: petersconsult on Oct 27, '09 11:26:33AM

Thank you so very much for this hint!



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: robg on Oct 28, '09 05:22:24AM
An anonymous contributor submitted the following as a hint:
Like many people, one of the things I disliked about Snow Leopard was the inability to use Safari 4 Beta, with its tabs on top. To get around this: Control-click on the Safari 4 Beta icon, and select Show Package Contents from the pop-up menu. Navigate to Contents » MacOS and double-click Safari.

(Or, for the Terminal lovers among us: $ /path/To/Safari4Beta/Safari.app/Contents/MacOS/Safari. This opens Safari 4 Beta via Terminal.)
-rob.

[ Reply to This | # ]
Last Post, I Promise!
Authored by: petersconsult on Nov 16, '09 09:34:28AM
Here is the updated application..
in case link above does not work, ulr is http://www.mediafire.com/?metqniyddjy
The difference is that it remains the default browser if you want it to.

Be Well!

[ Reply to This | # ]
Last Post, I Promise!
Authored by: PeterAhlstrom on Nov 18, '09 02:50:51PM

Peter,

Does the unofficial Leopard build of keywurl work with the program modified in this manner? I'm still on Leopard (and still using top tabs) but want to upgrade; however, I use keywurl all the time.



[ Reply to This | # ]
Last Post, I Promise!
Authored by: throwaway on Jan 25, '10 12:36:47PM

Amazing. However, wondering how I can get Safari AdBlocker to work. It must have something to do with your changing the name of the application to Safari_beta?



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: wilshire367 on Jun 13, '10 12:58:06AM

I used this forum to get safari 4 beta on snow Leopard as I like the tabs on top and have been using safari 4 beta for a while but downloaded Safari 5 a few days ago which is nice but I still like the beta 4 safari tabs on top and the space it gave me but the version.plist and info.plist from safari 5 won't work with safari 4 beta has anyone any fixes or is this the end of tabs on top as I have not a back up on time machine.



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: petersconsult on Jul 08, '10 08:57:25AM

Hi there,

Sorry i didn't answer sooner!
You don't need to change any of the plist files inside the app....

Just download the version of the App linked below and follow the instructions (basically you just need to duplicate the file called "com.apple.Safari.plist", and call the new one "com.apple.Safari_beta.plist", move the application Safari_beta to your Applications folder, and you're ready to go!!)

http://www.mediafire.com/?metqniyddjy

Be Well!
Peter



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: wilshire367 on Jul 09, '10 02:30:13AM

Peter thanks for the reply but it did not work .I mead a copy of the safari plist renamed it as I seen on your reply and when I click on the green safari icon it just quits . But thanks anyway



[ Reply to This | # ]
10.6: Run Safari 4 Beta in Snow Leopard
Authored by: wilshire367 on Jul 10, '10 12:33:42PM

Peter I changed the plist to safari4_beta and it worked and to my surprise feels faster then safari 5 I have put the blue progress bar back with safari 4 buddy and it's a really nicer blue color then safari 5 .Changed the icon from green to blue but it always comes up green when your asked do you want to close tabs in the warning can't get Glims to work it will only work on safari 5 but I do love the tabs on top and I love the design the way the tabs expands to fit how many tabs are open .Like I said I don't know if putting in a 4 to get it load was good but it works.Thanks



[ Reply to This | # ]