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


Click here to return to the 'How to use Safari 2 WebKit after installing Safari 3 Beta' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to use Safari 2 WebKit after installing Safari 3 Beta
Authored by: mfripp on Sep 22, '07 04:13:58PM
I tried this, but found I needed to make a couple of minor changes. I will run through the way I did it in some detail, which may also help people who aren't so familiar with the terminal.

(Note: I recognize that some people think it is better to stick with the old Safari and Webkit, and just experiment with the Safari 3 beta. There's another hint for how to do that at http://www.macosxhints.com/article.php?story=20070628162610545 . My instructions below are useful if you want to switch over to Safari 3 completely, and just use Safari 2 sometimes.)

1. Download and install Safari 3.0 public beta.

2. Download a Webkit nightly build from http://nightly.webkit.org/ . These nightly builds have the special ability to use your existing Safari.app with their own Webkit framework. But you are going to replace your Safari.app with Safari 2, and the Webkit framework inside Webkit.app with the older version of Webkit. So then it will launch Safari 2 with a matching version of Webkit, even though the rest of your system uses a newer version of Webkit.

2. Copy the newly downloaded Webkit to your /Applications folder. Rename it to Safari2. This is what you will use to launch Safari 2 in the future.

3. Rename /Applications/Safari to Safari3. This is what you will use to launch Safari 3 in the future.

4. In terminal, execute "cp /Library/Application\ Support/Apple/.SafariBetaArchive.tar.gz ~/Desktop/SafariBetaArchive.tar.gz" This makes a copy of the hidden archive on the desktop, where it's easier to get at with the Finder.

5. Double-click on SafariBetaArchive.tar.gz on the desktop. This will create a SafariBetaArchive folder. Inside it, you will find an Applications folder and a System folder.

6. Drag Safari from the Applications folder inside SafariBetaArchive to your main Applications folder. You will never launch this directly, but the Safari2 that you created above will now know where to find it.

7. Right-click on Safari2 in your main Applications folder. (This is the one that used to be called Webkit; it has a gold-rimmed icon.) Choose "Show Package Contents". Then go into the "Contents" folder, then the Resources folder.

8. Copy the following four folders from the SafariBetaArchive folder to the Resources folder that you just opened:

SafariBetaArchive/System/Library/Frameworks/WebKit.framework

SafariBetaArchive/System/Library/Frameworks/WebKit.framework/Frameworks/JavaScriptCore.framework

SafariBetaArchive/System/Library/Frameworks/WebKit.framework/Frameworks/WebCore.framework

SafariBetaArchive/System/Library/PrivateFrameworks/JavaScriptGlue.framework

NOTE: The JavaScriptGlue.framework folder is omitted from the hint above, and Safari will crash without it. Also, if you just drag JavaScriptCore.framework and WebCore.framework from the Webkit.framework/Frameworks folder to the Resources folder, they will be moved instead of being copied, so they won't end up inside Safari2.app/Contents/Resources/WebKit.framework. However, this doesn't seem to cause any problems. (Use the option key when you drag if you want to make a copy while leaving WebKit.framework unchanged.)

9. At this point you should be finished. Launch Safari2 whenever you want to use the old version. You can also check which version of WebKit is active by opening the html file inside the webkit_normal.zip file at http://trac.webkit.org/projects/webkit/wiki/DetectingWebKit .

[ Reply to This | # ]