Fix <rdar://problem/8961227> WebKit2 does not work with symlinked home directories.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 01:23:44 +0000 (01:23 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 01:23:44 +0000 (01:23 +0000)
commit551fe541ca1ea322c26a94cfd1411937cf813721
treebb8cdb6117090f806f1db2e27ab0e166357fa6c0
parentc4c33cd8b7afedeb8f6364fc20745bba807adf45
Fix <rdar://problem/8961227> WebKit2 does not work with symlinked home directories.

Reviewed by Sam Weinig.

* WebProcess/mac/WebProcessMac.mm:
(WebKit::WebProcess::platformSetCacheModel):
Don't adopt an autoreleased pointer, this would lead to a crash.

(WebKit::appendSandboxParameterPath):
(WebKit::appendSandboxParameterConfPath):
(WebKit::initializeSandbox):
Clean up the sandbox parameter code and make sure that realpath is called for all parameters.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/mac/WebProcessMac.mm