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

Easily use Safari with updated WebKit Web Browsers
I have built a copy of the new and improved open-source WebKit on OpenDarwin, and with some work, I have built an application launcher that runs Safari with this WebKit. Web developers who do not wish to build the WebKit from source, but want to test content against this version, can use this as easily as they might use any other Macintosh GUI application.

Just download the disk image and follow the instructions in the Read Me. The md5 checksum is 7367c911425d888b81cb66549bf62eb2. I have tested this distribution on Tiger, but I believe it should work on OS X 10.3.9. This launcher does not replace the default system WebKit, and you can run "standard" Safari at any time -- even at the same time -- by launching Safari the usual way.

The launcher is a simple perl script, adapted from the run-safari script that's included with the WebKit open-source package. It tells the system to use the local, new copy of WebKit when it runs Safari. The popular plug-in PithHelmet does not work with this application wrapper, but you can use the standard Safari with PithHelmet just fine.
    •    
  • Currently 2.40 / 5
  You rated: 1 / 5 (5 votes cast)
 
[18,932 views]  

Easily use Safari with updated WebKit | 16 comments | Create New Account
Click here to return to the 'Easily use Safari with updated WebKit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily use Safari with updated WebKit
Authored by: Mr. X on Jun 24, '05 12:36:06PM

gotta love the name of the .dmg ;)



[ Reply to This | # ]
Whoops
Authored by: ElectusUnum on Jun 24, '05 01:32:54PM

Very cool, although I'm guessing this is focused on the acid test and not general use? It seems to a'splode on complicated javascript like http://script.aculo.us/

But regardless, many thanks to the poster for making it so accessible!



[ Reply to This | # ]
Whoops
Authored by: maddys_daddy on Jun 24, '05 02:22:19PM

Confirmed. I don't know about "a'sploding," but Safari with the built webkit does beachball on that site, while the "OEM" Safari doesn't.



[ Reply to This | # ]
Does not work on 10.3.9
Authored by: karnat10 on Jun 24, '05 01:36:39PM

I followed the instructions in the Read Me, which basically say "double click that file". However, after one bounce, SafariOnAcid quits...



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: foresmac on Jun 24, '05 01:51:17PM

omfg, this is soooooo fast! Especially my internet banking site, it used to be painfully slow. It now zips right open. I'd say a speed improvement of at least 25x.

Thank you.



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: neilio on Jun 24, '05 02:15:14PM

I'm not sure I totally understand this hint. Why not just create an applescript that runs the included shell script that the updated Webkit comes with?

on run
	set cmd to "/FULL-PATH-To/Webkit/WebKitTools/Scripts/run-safari > /dev/null 2>&1&"
	do shell script cmd
	quit
end run

Save this as a script application and that's it - running this will launch Safari using the built webkit on your system.

---
Slumming at http://www.beatnikpad.com/

[ Reply to This | # ]

Easily use Safari with updated WebKit
Authored by: stephenj on Jun 25, '05 12:03:40PM
Just a little more elegant of a script:
on pscheck()
tell application "System Events"
return (get name of every process)
end tell
end pscheck

set e to my pscheck()
if e does not contain "Safari" then
try
do shell script "`locate run-safari | grep Scripts`" & "> /dev/null 2>&1 &"
on error
do shell script "`mdfind run-safari | grep Scripts`" & "> /dev/null 2>&1 &"
end try
else
tell application "Safari"
activate
end tell
end if

tell me
quit
end tell


---
This will find out your path to the run-safari script and will only launch one instance of it.
I use locate to find the script first and if locate's db isn't updated I use mdfind (spotlight).
So this should work for anyone...

---
if by chance or circumstance...

[ Reply to This | # ]

Easily use Safari with updated WebKit
Authored by: nerkles on Jun 24, '05 02:58:33PM

holy cr*p that's fast. is this webkit going to be in the next update?



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: spadesman on Jun 24, '05 04:46:09PM
I am running 10.3.9 and I get this crash log:
Link (dyld) error: dyld: /Applications/Safari.app/Contents/MacOS/Safari Undefined symbols: WebKit undefined reference to _kCGImageSourceShouldPreferRGB32 expected to be defined in ApplicationServices WebKit undefined reference to _kSecAsn1AlgorithmIDTemplate expected to be defined in Security WebKit undefined reference to _kSecAsn1IA5StringTemplate expected to be defined in Security WebKit undefined reference to _kSecAsn1SequenceOfAnyTemplate expected to be defined in Security WebKit undefined reference to _kSecAsn1SubjectPublicKeyInfoTemplate expected to be defined in Security
Any hints?

[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: dille on Jun 24, '05 05:40:37PM

Same here... Same version, too.



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: bkemper on Jun 24, '05 11:48:05PM

Me too. I am on Jaguar.



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: stevec on Jun 25, '05 07:29:23AM

Curious behavior

I tried to drag a link from the address bar to the desktop and it didn't work. Likewise from the "show all bookmarks" page. Works fine in the "stock" version. Anyone else have this problem?



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: delGrey on Jun 25, '05 09:38:36AM

Confirmed. Can't drag an address.



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: MichaelBuckley on Jun 27, '05 02:44:37AM

A couple of comments. Since there are no further planned versions of WebKit for non-Tiger systems, it includes Tiger-only features, and will not run on any older version of OS X. Also, URL dragging and Show all Bookmarks work in the current version of WebKit. Since it's being updated all the time, the version in this dmg is already a few days old.



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: tensafefrogs on Jun 24, '05 05:19:33PM

Well that's kinda cool, but how about *older* versions of safari so we can test our sites in previous versions without having to keep extra computers around or dual boot?



[ Reply to This | # ]
Easily use Safari with updated WebKit
Authored by: sparkleytone on Jun 25, '05 12:13:29PM



---
o'doyle rules.



[ Reply to This | # ]