The fix for Bug 12111 was not fully correct. The return value of -[NSFileManager fileExistsAtPath:isDirectory:] should be checked. See Bug 12111 Comment #8.
Created attachment 18228 [details] Patch v1 Use the return value of -[NSFileManager fileExistsAtPath:isDirectory:] and clean up code for WebKit style (remove extraneous curly braces in if/else statements).
Comment on attachment 18228 [details] Patch v1 r=me
Committed revision 29072.