I’ve been playing around with a new browser called Cruz. Based on webkit, it manages to feel faster than Safari, and it has some unique features. I recommend taking a look at the screencasts.
However, I wanted to see if Cruz could be made to work with a nightly webkit build. My objectives for doing so were:
- to have a browser that passes Acid3. Just for fun, I suppose.
- to give Cruz the much nicer inspector and JS debugger that is a part of the nightlies
- to allow images to scale along with text when I up the font size (the Webkit nightly is capable of this with a hidden preference)
Of course, the third one failed, since Cruz doesn’t tell the Webkit framework to use its full-page-zoom, and it was the Webkit binary that was reading the hidden preference, not the framework itself. Oh well.
That being said, Cruz now passes Acid3, and has the refreshed Inspector with a full JS Debugger. I’m rather happy.
Process
- Download the Webkit nightly
- Show package contents for both Cruz and the Webkit nightly
- Copy the contents of Contents/Frameworks in the Webkit nightly to Cruz’s Contents/Frameworks
- Rename Contents/MacOS/Cruz to TrueCruz
- Create a text file at Contents/MacOS/Cruz and paste the following script into it (also be sure to make the script executable)
- All done.
#!/usr/bin/perl -w
# Perl script for launching Cruz using the frameworks in the
# /Content/Frameworks directory of the application bundle.
#
# Adapted from the Multi-Safar script
# <http://www.michelf.com/weblog/2005/multi-safari/>
#
# Get path to current file so that we can set a find
# path for frameworks and launch the true Cruz binary.
#
$here = __FILE__;
$here =~ s{^(.*)/.*?$}{$1};
#
# Make frameworks load from "Cruz.app/Content/Frameworks"
# by using a relative path.
#
$ENV{DYLD_FRAMEWORK_PATH} = $here."/../Frameworks";
#
# Launch the true Cruz binary.
#
exec "\"$here/TrueCruz\"" or die;